General statistics
List of Youtube channels
Youtube commenter search
Distinguished comments
About
Core Dumped
comments
Comments by "" (@adambickford8720) on "Why Are Threads Needed On Single Core Processors" video.
Turns out even OS threads can be too expensive. For example, Java's virtual threads multiplex onto OS threads.
1
Google cooperative vs pre-emptive multitasking. You're solving different problems.
1
@homomorphic So you don't understand the topic. (also, it's "you're") How well do you suppose cooperative multitasking works on a consumer OS where the code is written by competing vendors? Think real hard at what chrome would do if it wasn't forced to yield the CPU. Efficiency is but one factor of thousands. Critical thinking is more important than google.
1
@homomorphic Arrogance suits you well.
1
There's also a cost to switching the active thread. With enough threads you spend more cpu time scheduling work than working.
1
Not only can you scale infinitely, but you have to in order to solve any nontrivial problem!
1