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

📅  最后修改于: 2021-09-14 01:23:02             🧑  作者: 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.