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

Markup displayed in the Lwt_unix documentation #19

Open
Emm opened this issue Mar 20, 2016 · 0 comments
Open

Markup displayed in the Lwt_unix documentation #19

Emm opened this issue Mar 20, 2016 · 0 comments

Comments

@Emm
Copy link

Emm commented Mar 20, 2016

See for instance on http://ocsigen.org/lwt/2.5.1/api/Lwt_unix the documentation for the async_method type:

type async_method =  
| Async_none
(* <<div class="odocwiki_info"|~System calls are made synchronously~, and may block the entire program~. >> *)
| Async_detach
(* <<div class="odocwiki_info"|~System calls are made in another system thread~, thus without blocking other ~Lwt threads~. ~The drawback is that it may degrade performance in some cases~. ~This is the default~. >> *)
| Async_switch
(* <<div class="odocwiki_info"|~System calls are made in the main thread~, and if one blocks the execution continue in another system thread~. ~This method is the most efficient~, also you will get better performance if you force all threads to run on the same cpu~. ~On linux this can be done by using the command <<span class="odocwiki_inlinecode"|taskset>>~. ~Note that this method is still experimental~. >> *)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant