MULTITASKING
- In multitasking, more than one program resides in the main memory and is executed simultaneously with a single CPU.
- Different tasks may be from different users.
- There are called heavyweight processes(HWP).
- Each program or task has its own address space, it's own stack, and its own register set.
- Each task has nothing to do with the other except that they may communicate through the system's interprocess communication primitives such as semaphores, monitors, or messages.
MULTITHREADING
- Multi-threading is multi-tasking within a single program.
- The individual tasks running within the same program are called threads.
- These are called lightweight processes (LWP).
- All threads have exactly the same address space. Each thread runs sequentially and has its own program counter and stack.
- Different threads in a program are not quite as different processes.
Post a Comment
Post a Comment