News for hackers. Stuff that matters.
Re:Implementing simple cooperative threads in C by ori_b on Sunday May 24, 2020 @06:18PM (#23295375)
> Giving a lot of stack space to each running thread would lead to fragmented and underused memory, or is it not a concern at the stack spaces you'd normally deal with?

That's exactly what happens, and it's not a problem in practice -- each thread gets 8 megabytes of memory allocated. (Note, due to demand paging, physical usage grows in 4kb increments.)

There are no comments on this comment yet.