Difference between multitasking, multithreading and multiprocessing?

后端 未结 24 2322
小鲜肉
小鲜肉 2020-12-12 10:08

Whats the difference between multitasking, multiprogramming & multiprocessing

This comes regularly for my university OS exams and I can\'t find a good answer. I

24条回答
  •  北海茫月
    2020-12-12 10:35

    Both multiprogramming and multitasking solve different problems, though they use similar method of switching between the processes.

    Multiprogramming : In the early days, it was seen that at times certain processes where using peripherals (e.g.: I/O). In such cases, the CPU remained idle. To use the CPU more efficiently, it was prudent to load multiple processes in the memory. This way, if a certain process were to use the peripheral, certain other process would use the CPU. This was multiprogramming in action.

    Multitasking : To the end user, multiple processes had to appear running at the same time. This was mocked by switching between different processes and by making them run on the CPU simultaneously. This was the idea behind multitasking.

提交回复
热议问题