3 ms·
It is sad that Googling didn't find the answer by ChatGPT did. --- Here's an excerpt from the book "Java Threads" by Scott Oaks and Henry Wong, published by O
by NovaX 3y ago
It is sad that Googling didn't find the answer by ChatGPT did.
---
Here's an excerpt from the book "Java Threads" by Scott Oaks and Henry Wong, published by O'Reilly Media, which discusses green threads:
"Green threads provide a thread abstraction to the application, allowing the programmer to write multithreaded programs without worrying about the underlying OS support. However, because they're implemented at the user level, they are not subject to preemptive multitasking by the underlying OS. Instead, they must voluntarily yield control to other threads. If a green thread fails to do this, it can effectively freeze all other green threads in the system."
This excerpt supports the fact that green threads were not preemptive and relied on voluntary cooperation to switch control between threads.
- jjtheblunt 3y agoThanks! I remember that book, but i do not have it.