3 ms·
> Ps may have no Ms if they are blocked or in a system call. Is it really this way or the other way around? I would have guessed threads which are blocked in a
by Matthias247 9y ago
> Ps may have no Ms if they are blocked or in a system call.
Is it really this way or the other way around? I would have guessed threads which are blocked in a system call are represented by an M which is not currently scheduled by the scheduler, which means that M isn't assigned to a P.
- dullgiulio 9y agoI think "they" above refers to Ms, I don't see the contradiction with what you say. Do I miss something?
- Matthias247 9y agoMakes sense then. For me "they" referred to Ps. But I'm not a native speaker. I would probably have expected "those" there.
- knome 9y agoIt isn't a matter of your not being a native speaker. The statement is ambiguous.
- samuell 9y agoI'm not super sure what was meant here, but I could add one point of info, FWIW: Go is creating extra OS threads for blocking system calls. In fact, sometimes more than one thread per such (for taking care of stdin and stdout, I think). I have been able to create at least 4999 go-routines with blocking system calls though (Two OS threads were created per go-routine / syscall), so not a problem you will run into quickly.
- stcredzero 9y agoFWIW: Go is creating extra OS threads for blocking system calls. One point for house Go!