Deck 6: Concurrent Processes

ملء الشاشة (f)
exit full mode
سؤال
The WAIT and SIGNAL operations must be issued at the same time.
استخدم زر المسافة أو
up arrow
down arrow
لقلب البطاقة.
سؤال
For many computational purposes, serial processing is sufficient; it's easy to implement and fast enough for most users.
سؤال
The problem of masters and slaves arises when two types of processes need to access a shared resource such as a file or database.
سؤال
The common element in all synchronization schemes is to allow a process to finish work on a critical region of the program before other processes have access to it.
سؤال
Test-and-set is a single indivisible machine instruction known simply as TS and was introduced by IBM for its multiprocessing System 360/370 computers.
سؤال
The symmetric configuration is best implemented if the processors are all of the same type.
سؤال
Parallel processing is a situation in which two or more processors operate in unison.
سؤال
In a loosely coupled system, a job may move from one processor to another during execution.
سؤال
The master/slave configuration is an symmetric multiprocessing system.
سؤال
The success of process synchronization hinges on the capability of the operating system to make a resource available to other processes while it is being used by one of them.
سؤال
The classic problem of producers and consumers is one in which one process produces some data that another process consumes later.
سؤال
Multiprocessors were developed for high-end models of midrange and mainframe computers, where the operating system treated each additional CPU as an additional resource, so that each could be scheduled for work.
سؤال
In a master/slave system, the master processor is responsible for managing the entire system-all files, devices, memory, and processors.
سؤال
Multiprocessing can refer to one job using several processors to execute sets of instructions in parallel.
سؤال
In multiprocessing systems, the Processor Manager has to coordinate the activity of each processor, as well as synchronize cooperative interaction among the CPUs.
سؤال
In a symmetric configuration, processor scheduling is centralized.
سؤال
The loosely coupled configuration features several complete computer systems, each with its own memory, I/O devices, CPU, and operating system.
سؤال
A semaphore is a negative integer variable that is used as a binary signal.
سؤال
In parallel computations, mutual exclusion is achieved automatically because each operation is handled in order, one at a time.
سؤال
The only reason for multiprocessing is to increase computer power.
سؤال
Parallel processing is also called ____.

A) uniprocessing
B) multiprocessing
C) shared processing
D) divided processing
سؤال
Operations on semaphore s enforce the concept of ____, which is necessary to avoid having two operations attempt to execute at the same time.

A) mutual execution
B) mutex execution
C) signal exclusion
D) mutual exclusion
سؤال
Java was developed by Sun Microsystems, Inc., and released in 1995 as the first software platform that promised to allow programmers to code an application with the capability to run on any computer.
سؤال
Lock and key synchronization must take place within a single ____.

A) instruction
B) computer
C) processor
D) machine cycle
سؤال
The ____ configuration is the most difficult to implement.

A) master/slave
B) loosely coupled
C) symmetric
D) shared load
سؤال
A ____ of processing must be handled as a unit.

A) line
B) segment
C) critical region
D) semaphore
سؤال
Threads share the same resources as the process that created them.
سؤال
A problem with test-and-set is that when many processes are waiting to enter a critical region, ____ could occur because the processes gain access in an arbitrary fashion.

A) starvation
B) synchronization
C) deadlock
D) an error
سؤال
The ____ configuration features several complete computer systems, each with its own memory, I/O devices, CPU, and operating system.

A) loosely coupled
B) master processor
C) start/end
D) master/slave
سؤال
The need for algorithms to resolve conflicts between processors is called process ____.

A) communication
B) synchronization
C) processing
D) math
سؤال
When the costs of CPU hardware began to decline in the mid-____s, multiprocessor systems with dozens of CPUs found their way into business environments.

A) 1960
B) 1970
C) 1980
D) 1990
سؤال
In a symmetric configuration, processor scheduling is ____.

A) centralized
B) decentralized
C) multifaceted
D) balanced
سؤال
Multiplying two 3x3 matrices requires 45 operations when performed in parallel using three processors.
سؤال
Thread Information Blocks contain basic information about a thread such as its ID, state, and a pointer to the process that created it.
سؤال
Implied parallelism includes automatic detection by the compiler of instructions that can be performed in parallel.
سؤال
____ sets the process's process control block (PCB) to the blocked state and links it to the queue of processes waiting to enter this particular critical region.

A) TS
B) SIGNAL
C) WAIT
D) STOP
سؤال
When using a semaphore, a value of ____ indicates that a critical region is in use.

A) -100
B) 0
C) 100
D) 9999
سؤال
The two operations identified by Dijkstra to be performed on a semaphore are ____.

A) P and V
B) WAIT and SIGNAL
C) test and set
D) check and update
سؤال
____ semaphores are used in the producer and consumer problem.

A) One
B) Two
C) Three
D) Four
سؤال
The ____ configuration is an asymmetric multiprocessing system.

A) loosely coupled
B) master processors
C) start/end
D) master/slave
سؤال
Automatic detection by the compiler of instructions that can be performed in parallel is called ____.

A) automatic parallelism
B) array parallelism
C) explicit parallelism
D) implicit parallelism
سؤال
When a computer evaluates the expression A = 3 * B * C + 4 / (D + E) ** (F - G), in a sequential manner, ____ is evaluated as a first step.

A) F - G
B) 3 * B
C) C + 4
D) B * C
سؤال
Most current operating systems support the implementation of threads, or ____, which have become part of numerous application packages.

A) parallel processes
B) lightweight processes
C) heavyweight processes
D) semaphores
سؤال
With its sophisticated synchronization capabilities, Java supports multithreading at the ____ level.

A) language
B) machine
C) operating
D) operating system
سؤال
____ proposed a solution to the readers and writers problem that did not result in starvation for readers or writers.

A) Hoare
B) Courtois
C) Heymans
D) Parnas
سؤال
Each active thread in a process shares the ____ and the resources allocated to its process.

A) processor registers
B) program counter
C) data area
D) status
سؤال
Once a thread is in the ready state, the state it can enter next is ____.

A) BLOCKED
B) FINISHED
C) WAITING
D) RUNNING
سؤال
The source code of a Java program is first compiled into an intermediate language called Java ____, which are platform-independent.

A) beans
B) nibs
C) bits
D) bytecodes
سؤال
____ semaphores are used in the solution to the readers and writers problem that does not involve starvation.

A) Zero
B) One
C) Two
D) Three
سؤال
A thread transitions from RUNNING to ____ when it has to wait for an event outside its control to occur.

A) LOOPING
B) BLOCKED
C) WAITING
D) PENDING
فتح الحزمة
قم بالتسجيل لفتح البطاقات في هذه المجموعة!
Unlock Deck
Unlock Deck
1/50
auto play flashcards
العب
simple tutorial
ملء الشاشة (f)
exit full mode
Deck 6: Concurrent Processes
1
The WAIT and SIGNAL operations must be issued at the same time.
False
2
For many computational purposes, serial processing is sufficient; it's easy to implement and fast enough for most users.
True
3
The problem of masters and slaves arises when two types of processes need to access a shared resource such as a file or database.
False
4
The common element in all synchronization schemes is to allow a process to finish work on a critical region of the program before other processes have access to it.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
5
Test-and-set is a single indivisible machine instruction known simply as TS and was introduced by IBM for its multiprocessing System 360/370 computers.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
6
The symmetric configuration is best implemented if the processors are all of the same type.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
7
Parallel processing is a situation in which two or more processors operate in unison.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
8
In a loosely coupled system, a job may move from one processor to another during execution.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
9
The master/slave configuration is an symmetric multiprocessing system.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
10
The success of process synchronization hinges on the capability of the operating system to make a resource available to other processes while it is being used by one of them.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
11
The classic problem of producers and consumers is one in which one process produces some data that another process consumes later.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
12
Multiprocessors were developed for high-end models of midrange and mainframe computers, where the operating system treated each additional CPU as an additional resource, so that each could be scheduled for work.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
13
In a master/slave system, the master processor is responsible for managing the entire system-all files, devices, memory, and processors.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
14
Multiprocessing can refer to one job using several processors to execute sets of instructions in parallel.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
15
In multiprocessing systems, the Processor Manager has to coordinate the activity of each processor, as well as synchronize cooperative interaction among the CPUs.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
16
In a symmetric configuration, processor scheduling is centralized.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
17
The loosely coupled configuration features several complete computer systems, each with its own memory, I/O devices, CPU, and operating system.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
18
A semaphore is a negative integer variable that is used as a binary signal.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
19
In parallel computations, mutual exclusion is achieved automatically because each operation is handled in order, one at a time.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
20
The only reason for multiprocessing is to increase computer power.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
21
Parallel processing is also called ____.

A) uniprocessing
B) multiprocessing
C) shared processing
D) divided processing
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
22
Operations on semaphore s enforce the concept of ____, which is necessary to avoid having two operations attempt to execute at the same time.

A) mutual execution
B) mutex execution
C) signal exclusion
D) mutual exclusion
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
23
Java was developed by Sun Microsystems, Inc., and released in 1995 as the first software platform that promised to allow programmers to code an application with the capability to run on any computer.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
24
Lock and key synchronization must take place within a single ____.

A) instruction
B) computer
C) processor
D) machine cycle
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
25
The ____ configuration is the most difficult to implement.

A) master/slave
B) loosely coupled
C) symmetric
D) shared load
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
26
A ____ of processing must be handled as a unit.

A) line
B) segment
C) critical region
D) semaphore
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
27
Threads share the same resources as the process that created them.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
28
A problem with test-and-set is that when many processes are waiting to enter a critical region, ____ could occur because the processes gain access in an arbitrary fashion.

A) starvation
B) synchronization
C) deadlock
D) an error
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
29
The ____ configuration features several complete computer systems, each with its own memory, I/O devices, CPU, and operating system.

A) loosely coupled
B) master processor
C) start/end
D) master/slave
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
30
The need for algorithms to resolve conflicts between processors is called process ____.

A) communication
B) synchronization
C) processing
D) math
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
31
When the costs of CPU hardware began to decline in the mid-____s, multiprocessor systems with dozens of CPUs found their way into business environments.

A) 1960
B) 1970
C) 1980
D) 1990
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
32
In a symmetric configuration, processor scheduling is ____.

A) centralized
B) decentralized
C) multifaceted
D) balanced
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
33
Multiplying two 3x3 matrices requires 45 operations when performed in parallel using three processors.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
34
Thread Information Blocks contain basic information about a thread such as its ID, state, and a pointer to the process that created it.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
35
Implied parallelism includes automatic detection by the compiler of instructions that can be performed in parallel.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
36
____ sets the process's process control block (PCB) to the blocked state and links it to the queue of processes waiting to enter this particular critical region.

A) TS
B) SIGNAL
C) WAIT
D) STOP
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
37
When using a semaphore, a value of ____ indicates that a critical region is in use.

A) -100
B) 0
C) 100
D) 9999
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
38
The two operations identified by Dijkstra to be performed on a semaphore are ____.

A) P and V
B) WAIT and SIGNAL
C) test and set
D) check and update
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
39
____ semaphores are used in the producer and consumer problem.

A) One
B) Two
C) Three
D) Four
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
40
The ____ configuration is an asymmetric multiprocessing system.

A) loosely coupled
B) master processors
C) start/end
D) master/slave
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
41
Automatic detection by the compiler of instructions that can be performed in parallel is called ____.

A) automatic parallelism
B) array parallelism
C) explicit parallelism
D) implicit parallelism
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
42
When a computer evaluates the expression A = 3 * B * C + 4 / (D + E) ** (F - G), in a sequential manner, ____ is evaluated as a first step.

A) F - G
B) 3 * B
C) C + 4
D) B * C
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
43
Most current operating systems support the implementation of threads, or ____, which have become part of numerous application packages.

A) parallel processes
B) lightweight processes
C) heavyweight processes
D) semaphores
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
44
With its sophisticated synchronization capabilities, Java supports multithreading at the ____ level.

A) language
B) machine
C) operating
D) operating system
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
45
____ proposed a solution to the readers and writers problem that did not result in starvation for readers or writers.

A) Hoare
B) Courtois
C) Heymans
D) Parnas
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
46
Each active thread in a process shares the ____ and the resources allocated to its process.

A) processor registers
B) program counter
C) data area
D) status
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
47
Once a thread is in the ready state, the state it can enter next is ____.

A) BLOCKED
B) FINISHED
C) WAITING
D) RUNNING
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
48
The source code of a Java program is first compiled into an intermediate language called Java ____, which are platform-independent.

A) beans
B) nibs
C) bits
D) bytecodes
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
49
____ semaphores are used in the solution to the readers and writers problem that does not involve starvation.

A) Zero
B) One
C) Two
D) Three
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
50
A thread transitions from RUNNING to ____ when it has to wait for an event outside its control to occur.

A) LOOPING
B) BLOCKED
C) WAITING
D) PENDING
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
locked card icon
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.