Expanding Multitasking System -> Multitasking+Threading
Expanding Multitasking System -> Multitasking+Threading
How would one go about expanding a existing multitasking system into a multithreading system?
-
- Member
- Posts: 391
- Joined: Wed Jul 25, 2007 8:45 am
- Libera.chat IRC: aejsmith
- Location: London, UK
- Contact:
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.
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.