File: thread-yield.md

package info (click to toggle)
bordeaux-threads 0.9.4-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 672 kB
  • sloc: lisp: 4,765; makefile: 2
file content (29 lines) | stat: -rw-r--r-- 544 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
---
date: 2022-01-07T08:00:00Z
title: 'Function THREAD-YIELD'
weight: 9
---

#### Syntax:

**thread-yield** => No values.

#### Arguments and values:

Returns no values.

#### Description

Causes the calling thread to relinquish the CPU to allow other threads
to run.

#### Exceptional situations:

None.

#### Notes:

On modern implementations that use native OS (SMP) threads, this
function is of little use. On some older implementations where threads
are scheduled in user space, it may be necessary or desirable to call
this periodically.