Advanced Java Tutorial

Total available pages count: 55
Subject - Java Technologies


Multitasking is the process of executing multiple tasks simultaneously. We can perform multitasking in two way:

  • Process-based multitasking

Process-based multitasking is also known for multiprocessing, each process contains the address in the memory. The threads are lightweight whereas the process is heavyweight. Changing from one process to the next requires some time for loading and saving registers, updating list, memory maps, etc.

  • Thread based multitasking

Thread-based multitasking is also known for sharing the same address space. At least one process must be required for each thread.