Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add threads survey #17

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
44 changes: 44 additions & 0 deletions surveys/threads.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
# Threads

Using _OS threads_, also known as _native threads_, there is exactly
one operating system thread for each virtual machine thread.

Using _virtual threads_, also known as _green threads_ (after the
_Green Team_ working on Java at Sun), each OS thread can switch
between multiple VM threads using co-operative multitasking. The
threads visible to the Scheme program are the VM threads; the OS
threads are an internal implementation detail.

|Scheme|Standard API|Custom API|OS threads|Virtual threads|Re-entrant interpreter
|------|------------|----------|----------|---------------|----------------------
|Bigloo|SRFI 18|?|["POSIX threads"][bigloo-pthread]|["Fair threads"][bigloo-fthread]|?
|Chez Scheme|?|?|?|?|?
|Chibi-Scheme|?|?|?|?|?
|CHICKEN|SRFI 18|?|Yes|No|?|?|?
|Cyclone|SRFI 18*|?|No|pthreads|?|?|?
|Gambit|SRFI 18|?|Yes|No|?|?|?
|Gauche|SRFI 18|?|No|pthreads, Win32|?|?|?
|Gerbil|?|?|?|?|?
|Guile|SRFI 18|[Here][guile-custom]|[pthreads][guile-pthreads]|[`(ice-9 futures)`][guile-futures]|Yes
|IronScheme|?|?|?|?|?
|Kawa|?|?|?|?|?
|Larceny|?|?|?|?|?
|Loko|?|?|?|?|?
|MIT Scheme|?|?|?|?|?
|Racket|?|?|?|?|?
|Sagittarius|?|?|?|?|?
|Scheme48|?|?|?|?|?
|STKlos|SRFI 18|?|No|pthreads|Yes
|TinyScheme|No|?|?|?|?|Yes
|Unsyntax|?|?|?|?|?
|Vicare|?|?|?|?|?
|Ypsilon|?|?|Yes|?|?

*) Partial support

[bigloo-fthread]: https://www-sop.inria.fr/mimosa/fp/Bigloo/manual-chapter16.html#Fair%20Threads
[bigloo-pthread]: [https://www-sop.inria.fr/mimosa/fp/Bigloo/manual-chapter16.html#Posix%20Threads]

[guile-pthreads]: https://www.gnu.org/software/guile/manual/html_node/Scheduling.html
[guile-custom]: https://www.gnu.org/software/guile/manual/html_node/Threads.html
[guile-futures]: https://www.gnu.org/software/guile/manual/html_node/Futures.html
3 changes: 2 additions & 1 deletion www-index.scm
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@
"minischeme-history"
"optionality"
"scheme-on-windows"
"standalone-executables")
"standalone-executables"
"threads")

("Macros"
"macroexpand"
Expand Down