📜  多任务和多处理之间的区别

📅  最后修改于: 2021-08-25 17:45:26             🧑  作者: Mango

1.多任务处理:
多任务是多编程的逻辑扩展。在此系统中,CPU通过通常使用较小的时间量在多个作业之间切换来执行多个作业,并且切换频繁发生,以使用户可以在每个程序运行时与它们进行交互。多任务处理又分为两类:单用户和多用户。

2.多重处理:
多处理是具有两个或多个处理器的系统。为此,添加了CPU以提高系统的计算速度。由于进行了多处理,因此有许多进程可以同时执行。多重处理又分为两类:对称多重处理,非对称多重处理。

多任务和多处理之间的区别:

S.No. Multi-tasking Multiprocessing
1. The execution of more than one task simultaneously is known as multitasking. The availability of more than one processor per system, that can execute several set of instructions in parallel is known as multiprocessing.
2. The number of CPU is one. The number of CPU is more than one.
3. It takes moderate amount of time. It takes less time for job processing.
4. In this, one by one job is being executed at a time. In this, more than one process can be executed at a time.
5. It is economical. It is economical.
6. The number of users is more than one. The number of users is can be one or more than one.
7. Throughput is moderate. Throughput is maximum.
8. Its efficiency is moderate. Its efficiency is maximum.