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

Coroutines or goroutines? #1

Open
cameronelliott opened this issue Nov 16, 2022 · 1 comment
Open

Coroutines or goroutines? #1

cameronelliott opened this issue Nov 16, 2022 · 1 comment

Comments

@cameronelliott
Copy link

Is this package more like goroutines or coroutines?

goroutines: green-threads: cooperative-multitasking through context switching using a library or run-time.
(goroutines are non-preemptive, I believe, but the runtime decides when to context switch)

coroutines: cooperative-multitasking through subroutine yield or calls.

I didn't really understand from the Readme, which describes this package as coroutines, but compares it to go Goroutines/green threads.

@zhuxiujia
Copy link
Contributor

Is this package more like goroutines or coroutines?

goroutines: green-threads: cooperative-multitasking through context switching using a library or run-time. (goroutines are non-preemptive, I believe, but the runtime decides when to context switch)

coroutines: cooperative-multitasking through subroutine yield or calls.

I didn't really understand from the Readme, which describes this package as coroutines, but compares it to go Goroutines/green threads.

yes ,maybe most like goroutines

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

2 participants