简体   繁体   中英

Information and examples of interaction between threads and continuations in Scheme?

I've been using SRFI 18 in different Scheme implementations (Gambit, Gauche and Chicken), and I'd like to know where to find dpcumentation/tutorials /information about the problems that may arise when one uses continuations inside threads? I suppose there are lots of issues, like what happens if a thread invokes a continuation that was captured by another thread -- either inside or outside dynamic-wind , and so on.

Not just a specification (like the SRFI itself), but tips and code examples, examples of how these issues are dealt with in usual programs.

Is there something like that somewhere?

You will not find anything like that for Scheme , because there are no threads in the standard specification. To make things worse, there will probably be some major differences between implementations because some thread implementations use continuation and some use a more native approach. (For example, Racket falls in the latter category, and in some cases you can "migrate" continuations between threads.)

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM