Deck 6: Concurrent Processes

Full screen (f)
exit full mode
Question
In a master/slave system,the master processor is responsible for managing the entire system-all files,devices,memory,and processors.
Use Space or
up arrow
down arrow
to flip the card.
Question
Multiprocessing can refer to one job using several processors to execute sets of instructions in parallel.
Question
When multiprocessing takes place at the thread level,a high degree of synchronization is required to disassemble each process.
Question
Early programming languages did not support the creation of threads or the existence of concurrent processes.The Ada programming language was one of the first to do so.
Question
In a loosely coupled system,a job may move from one processor to another during execution.
Question
Java technology is used for many Web and Internet applications,and it integrates well with browsers that can run Java applets with audio,video,and animation directly in a Web page.
Question
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.
Question
Parallel processing is a situation in which two or more processors operate in one system at the same time and may or may not work on related activities.
Question
When a programmer indicates in the code which instructions can be executed in parallel in a program (for example,using COBEGIN and COEND),it is called implicit parallelism.
Question
The two operations that can be performed on a semaphore variable are select and increment (P and V).
Question
In parallel computations,mutual exclusion is achieved automatically because each operation is handled in order,one at a time.
Question
The loosely coupled multiprocessing configuration features several complete computer systems,each with its own memory,I/O devices,CPU,and operating system.
Question
Test-and-set is a single indivisible machine instruction.In a single machine cycle,it tests to see if a key is available and,if it is,sets it to unavailable.
Question
The primary disadvantage of the WAIT and SIGNAL operation set is that it does not address busy waiting.
Question
The only tangible benefit of parallel processing systems is faster processing.
Question
The master/slave configuration is a symmetric multiprocessing system.
Question
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.
Question
The classic problem of producers and consumers is one in which one or more processes produce some data that one or more processes consume later.
Question
Each active thread in a process has its own processor registers,data area,and resources.
Question
Java uses both a compiler and an interpreter.
Question
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
Question
A ____ of processing must be handled as a single unit.

A) line
B) segment
C) critical region
D) semaphore
Question
The Java ____ class is a collection of methods used to start,run,stop,and check the status of a thread.

A) thread
B) multiprocessing
C) distributed
D) concurrency
Question
In its simplest form,Amdahl's Law maintains that if a given program would take one hour to run to completion with one processor,but 80 percent of the program had to run sequentially (and therefore could not be sped up by applying additional processors to it),then a resulting parallel program would run only a maximum of ____ percent faster.

A) 5
B) 10
C) 20
D) 25
Question
When a compiler automatically detects instructions that can be performed in parallel,____ is in place.

A) automatic parallelism
B) array parallelism
C) explicit parallelism
D) implicit parallelism
Question
In general,parallel systems can be put into two broad categories: ____ level parallelism and instruction level parallelism.

A) resource
B) register
C) data
D) task
Question
The two operations defined 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
Question
____ 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
Question
The ____ multiprocessing configuration is the most difficult to implement because the processes must be well synchronized to avoid races and deadlocks.

A) master/slave
B) loosely coupled
C) symmetric
D) shared load
Question
What is the name traditionally given to a semaphore that enforces the concept of mutual exclusion?

A) synch
B) flag
C) mutex
D) signal
Question
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
Question
A computer system that can support jobs that use multiple processors to execute sets of instructions in parallel is referred to as a ____ system.

A) concurrent processing
B) process synchronization
C) parallel extraction
D) processing optimization
Question
A problem with test-and-set is that when many processes are waiting to enter a critical region,____ can occur because the processes gain access in an arbitrary fashion.

A) starvation
B) synchronization
C) deadlock
D) an error
Question
____ 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
Question
The ____ multiprocessing configuration is an asymmetric system.

A) loosely coupled
B) master processors
C) start/end
D) master/slave
Question
The operation P in a semaphore scheme requires a(n)____ sequence to be performed as an indivisible action in a single machine cycle.

A) test,fetch,increment,and store
B) test,fetch,decrement,and store
C) increment and store
D) decrement and store
Question
Lock and key synchronization must take place within a single ____.

A) instruction
B) computer
C) processor
D) machine cycle
Question
____ semaphores are used in the producer and consumer problem.

A) One
B) Two
C) Three
D) Four
Question
The ____ multiprocessing configuration features several complete computer systems,each with its own memory,I/O devices,CPU,and operating system.

A) loosely coupled
B) master/slave
C) symmetric
D) synchronized
Question
When using the WAIT and SIGNAL operations,____ sets the process's process control block 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) BLOCK
Unlock Deck
Sign up to unlock the cards in this deck!
Unlock Deck
Unlock Deck
1/40
auto play flashcards
Play
simple tutorial
Full screen (f)
exit full mode
Deck 6: Concurrent Processes
1
In a master/slave system,the master processor is responsible for managing the entire system-all files,devices,memory,and processors.
True
2
Multiprocessing can refer to one job using several processors to execute sets of instructions in parallel.
True
3
When multiprocessing takes place at the thread level,a high degree of synchronization is required to disassemble each process.
True
4
Early programming languages did not support the creation of threads or the existence of concurrent processes.The Ada programming language was one of the first to do so.
Unlock Deck
Unlock for access to all 40 flashcards in this deck.
Unlock Deck
k this deck
5
In a loosely coupled system,a job may move from one processor to another during execution.
Unlock Deck
Unlock for access to all 40 flashcards in this deck.
Unlock Deck
k this deck
6
Java technology is used for many Web and Internet applications,and it integrates well with browsers that can run Java applets with audio,video,and animation directly in a Web page.
Unlock Deck
Unlock for access to all 40 flashcards in this deck.
Unlock Deck
k this deck
7
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.
Unlock Deck
Unlock for access to all 40 flashcards in this deck.
Unlock Deck
k this deck
8
Parallel processing is a situation in which two or more processors operate in one system at the same time and may or may not work on related activities.
Unlock Deck
Unlock for access to all 40 flashcards in this deck.
Unlock Deck
k this deck
9
When a programmer indicates in the code which instructions can be executed in parallel in a program (for example,using COBEGIN and COEND),it is called implicit parallelism.
Unlock Deck
Unlock for access to all 40 flashcards in this deck.
Unlock Deck
k this deck
10
The two operations that can be performed on a semaphore variable are select and increment (P and V).
Unlock Deck
Unlock for access to all 40 flashcards in this deck.
Unlock Deck
k this deck
11
In parallel computations,mutual exclusion is achieved automatically because each operation is handled in order,one at a time.
Unlock Deck
Unlock for access to all 40 flashcards in this deck.
Unlock Deck
k this deck
12
The loosely coupled multiprocessing configuration features several complete computer systems,each with its own memory,I/O devices,CPU,and operating system.
Unlock Deck
Unlock for access to all 40 flashcards in this deck.
Unlock Deck
k this deck
13
Test-and-set is a single indivisible machine instruction.In a single machine cycle,it tests to see if a key is available and,if it is,sets it to unavailable.
Unlock Deck
Unlock for access to all 40 flashcards in this deck.
Unlock Deck
k this deck
14
The primary disadvantage of the WAIT and SIGNAL operation set is that it does not address busy waiting.
Unlock Deck
Unlock for access to all 40 flashcards in this deck.
Unlock Deck
k this deck
15
The only tangible benefit of parallel processing systems is faster processing.
Unlock Deck
Unlock for access to all 40 flashcards in this deck.
Unlock Deck
k this deck
16
The master/slave configuration is a symmetric multiprocessing system.
Unlock Deck
Unlock for access to all 40 flashcards in this deck.
Unlock Deck
k this deck
17
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.
Unlock Deck
Unlock for access to all 40 flashcards in this deck.
Unlock Deck
k this deck
18
The classic problem of producers and consumers is one in which one or more processes produce some data that one or more processes consume later.
Unlock Deck
Unlock for access to all 40 flashcards in this deck.
Unlock Deck
k this deck
19
Each active thread in a process has its own processor registers,data area,and resources.
Unlock Deck
Unlock for access to all 40 flashcards in this deck.
Unlock Deck
k this deck
20
Java uses both a compiler and an interpreter.
Unlock Deck
Unlock for access to all 40 flashcards in this deck.
Unlock Deck
k this deck
21
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
Unlock Deck
Unlock for access to all 40 flashcards in this deck.
Unlock Deck
k this deck
22
A ____ of processing must be handled as a single unit.

A) line
B) segment
C) critical region
D) semaphore
Unlock Deck
Unlock for access to all 40 flashcards in this deck.
Unlock Deck
k this deck
23
The Java ____ class is a collection of methods used to start,run,stop,and check the status of a thread.

A) thread
B) multiprocessing
C) distributed
D) concurrency
Unlock Deck
Unlock for access to all 40 flashcards in this deck.
Unlock Deck
k this deck
24
In its simplest form,Amdahl's Law maintains that if a given program would take one hour to run to completion with one processor,but 80 percent of the program had to run sequentially (and therefore could not be sped up by applying additional processors to it),then a resulting parallel program would run only a maximum of ____ percent faster.

A) 5
B) 10
C) 20
D) 25
Unlock Deck
Unlock for access to all 40 flashcards in this deck.
Unlock Deck
k this deck
25
When a compiler automatically detects instructions that can be performed in parallel,____ is in place.

A) automatic parallelism
B) array parallelism
C) explicit parallelism
D) implicit parallelism
Unlock Deck
Unlock for access to all 40 flashcards in this deck.
Unlock Deck
k this deck
26
In general,parallel systems can be put into two broad categories: ____ level parallelism and instruction level parallelism.

A) resource
B) register
C) data
D) task
Unlock Deck
Unlock for access to all 40 flashcards in this deck.
Unlock Deck
k this deck
27
The two operations defined 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
Unlock Deck
Unlock for access to all 40 flashcards in this deck.
Unlock Deck
k this deck
28
____ 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
Unlock Deck
Unlock for access to all 40 flashcards in this deck.
Unlock Deck
k this deck
29
The ____ multiprocessing configuration is the most difficult to implement because the processes must be well synchronized to avoid races and deadlocks.

A) master/slave
B) loosely coupled
C) symmetric
D) shared load
Unlock Deck
Unlock for access to all 40 flashcards in this deck.
Unlock Deck
k this deck
30
What is the name traditionally given to a semaphore that enforces the concept of mutual exclusion?

A) synch
B) flag
C) mutex
D) signal
Unlock Deck
Unlock for access to all 40 flashcards in this deck.
Unlock Deck
k this deck
31
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
Unlock Deck
Unlock for access to all 40 flashcards in this deck.
Unlock Deck
k this deck
32
A computer system that can support jobs that use multiple processors to execute sets of instructions in parallel is referred to as a ____ system.

A) concurrent processing
B) process synchronization
C) parallel extraction
D) processing optimization
Unlock Deck
Unlock for access to all 40 flashcards in this deck.
Unlock Deck
k this deck
33
A problem with test-and-set is that when many processes are waiting to enter a critical region,____ can occur because the processes gain access in an arbitrary fashion.

A) starvation
B) synchronization
C) deadlock
D) an error
Unlock Deck
Unlock for access to all 40 flashcards in this deck.
Unlock Deck
k this deck
34
____ 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
Unlock Deck
Unlock for access to all 40 flashcards in this deck.
Unlock Deck
k this deck
35
The ____ multiprocessing configuration is an asymmetric system.

A) loosely coupled
B) master processors
C) start/end
D) master/slave
Unlock Deck
Unlock for access to all 40 flashcards in this deck.
Unlock Deck
k this deck
36
The operation P in a semaphore scheme requires a(n)____ sequence to be performed as an indivisible action in a single machine cycle.

A) test,fetch,increment,and store
B) test,fetch,decrement,and store
C) increment and store
D) decrement and store
Unlock Deck
Unlock for access to all 40 flashcards in this deck.
Unlock Deck
k this deck
37
Lock and key synchronization must take place within a single ____.

A) instruction
B) computer
C) processor
D) machine cycle
Unlock Deck
Unlock for access to all 40 flashcards in this deck.
Unlock Deck
k this deck
38
____ semaphores are used in the producer and consumer problem.

A) One
B) Two
C) Three
D) Four
Unlock Deck
Unlock for access to all 40 flashcards in this deck.
Unlock Deck
k this deck
39
The ____ multiprocessing configuration features several complete computer systems,each with its own memory,I/O devices,CPU,and operating system.

A) loosely coupled
B) master/slave
C) symmetric
D) synchronized
Unlock Deck
Unlock for access to all 40 flashcards in this deck.
Unlock Deck
k this deck
40
When using the WAIT and SIGNAL operations,____ sets the process's process control block 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) BLOCK
Unlock Deck
Unlock for access to all 40 flashcards in this deck.
Unlock Deck
k this deck
locked card icon
Unlock Deck
Unlock for access to all 40 flashcards in this deck.