News for hackers. Stuff that matters.
Re:Processes and Threads by bddicken on Wednesday September 24, 2025 @12:37PM (#45362776)
Author of the article here. Hope you love it, and I'm hanging around to answer any questions.
Re:Processes and Threads by Veserv on Wednesday September 24, 2025 @02:33PM (#45364289)
A fine introduction, but a few nits.

Similar to how in the "POSIX threads" section you indicate that pthread_create() is UNIX/POSIX-specific, you should probably indicate in the "Creating new Processes" section that fork() and execve() are Unix/POSIX-specific. That, or you could indicate that you are describing generally in that context.

In "Running multiple programs" you state: "After a few seconds, it pauses, saves the state of the RAM, and changes processes." Saying it "saves the state of the RAM" is probably not a good characterization since it is more likely just changing what memory is accessible. It is also, most likely changing the virtual memory mappings to give the illusion of using the same memory addresses (though it does not have to, for instance a system with a MPU still has a concept of distinct programs even though virtual memory mappings are not supported), but you could omit that to the later virtual memory section without being incorrect.

Re:Processes and Threads by bddicken on Wednesday September 24, 2025 @05:21PM (#45366111)
Thanks for the feedback!

Yeah, I purposefully "simplified" how virtual memory works here so that the focus could be on multitasking and context switching, but agree that isn't totally accurate. I actually had hoped to do a part II on virtual memory, but we'll see if time permits that :)

Re:Processes and Threads by itunpredictable on Wednesday September 24, 2025 @01:40PM (#45363562)
awesome work, really enjoyed this
Re:Processes and Threads by bddicken on Wednesday September 24, 2025 @05:21PM (#45366113)
Thank you!
Re:Processes and Threads by sergsoares on Thursday September 25, 2025 @07:22AM (#45371560)
Really great post with that interactive examples and the example of mysql x postgrel too.

I would like read more about that topics with that level of detail.

Re:Processes and Threads by denhamparry on Friday September 26, 2025 @06:47AM (#45384987)
Its a great blog post and loved the interactive elements around it