Expanding Multitasking System -> Multitasking+Threading

Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
Post Reply
tigerfish
Posts: 12
Joined: Wed Jan 17, 2007 7:26 am

Expanding Multitasking System -> Multitasking+Threading

Post by tigerfish »

How would one go about expanding a existing multitasking system into a multithreading system?
xyzzy
Member
Member
Posts: 391
Joined: Wed Jul 25, 2007 8:45 am
Libera.chat IRC: aejsmith
Location: London, UK
Contact:

Post by xyzzy »

So you have just single processes executing? In that case, just change it so that threads are what get executed on the CPU rather than processes, and a process only contains threads and resources shared between all of it's threads (e.g. open files, address space).

When you switch to a thread, you switch to the address space of the process containing it, so that you end up with all threads in one process running inside the same address space.
Post Reply