3 ms·
> “Manual” async programming with callback functions/closures is not the only way to do cooperative multi-tasking. Google’s Go language takes another approach k
by Zababa 5y ago
> “Manual” async programming with callback functions/closures is not the only way to do cooperative multi-tasking. Google’s Go language takes another approach known as “green threads”, or “user level” threads (vs operating system / kernel managed threads).
Isn't Go preemptive multi-tasking instead of cooperative multi-tasking?
- littlestymaar 5y agoIIRC it used be cooperative (inserting yield point in specific places) but it caused trouble with tight loops and they eventually added preemption.