首页 > 代码库 > concurrency parallel 并发 并行
concurrency parallel 并发 并行
Computer Systems A Programmer‘s Perspective Second Edition
The general phenomenon of multiple flows executing concurrently is known
as
concurrency
. The notion of a process taking turns with other processes is also
known as
multitasking
. Each time period that a process executes a portion of its
flow is called a
time slice
. Thus, multitasking is also referred to as
time slicing
.For
example, in Figure 8.12, the flow for Process A consists of two time slices.
Notice that the idea of concurrent flows is independent of the number of
processor cores or computers that the flows are running on. If two flows overlap
in time, then they are concurrent, even if they are running on the same processor.
However, we will sometimes find it useful to identify a proper subset of concurrent
flows known as
parallel flows
. If two flows are running concurrently on different
processor cores or computers, then we say that they are
parallel flows
, that they
are
running in parallel
, and have
parallel execution
.
concurrency parallel 并发 并行
声明:以上内容来自用户投稿及互联网公开渠道收集整理发布,本网站不拥有所有权,未作人工编辑处理,也不承担相关法律责任,若内容有误或涉及侵权可进行投诉: 投诉/举报 工作人员会在5个工作日内联系你,一经查实,本站将立刻删除涉嫌侵权内容。