Threads Flashcards
Which one of the following is not the reason to used thread in OS ?
A. Economy
B. Responsiveness
C. Resources sharing
D. Scalability
E. versatile
E. versatile
Which one of the following is the difference between thread and process?
a. Thread share CPU and only one thread active at a time
b. Threads within processes execute sequentially
c. Threads can create children
d. Threads are not independent of one another
e. none of mentioned
d. Threads are not independent of one another
- A single thread of control allows the process to perform
a. only one task at a time
b. only two task at a time
c. only exactly two tasks at a time
d. multiple tasks at a time
e. all of the mentioned
a. only one task at a time
Which one of the following is shared by threads?
a. stack
b. program counter
c. code section
d. register set
e. none of the mentioned
c. code section
Which one of the following is not the advantage of a User-level-thread?
a. A user-level threads package can be implemented on an OS that does not support threads
b. Fast and efficient
c. Simple management
d. there is a lack of coordination between threads and OS kernel
e. User-level thread does not requires modification to OS
d. there is a lack of coordination between threads and OS kernel
A process can be:
a. single threaded
b. multithreaded
c. two threaded
d. a & b
e. None of the mentioned
d. a & b
a. single threaded
b. multithreaded
Choose all types of Parallelism
a. Data Parallelism
b. Round Parallelism
c. Task Parallelism
d. Work Parallelism
e. None
a. Data Parallelism
c. Task Parallelism
which one of the following is not the multicore programming challenge ?
a. Balance
b. Data splitting
c. Data Dependency
d. Scalability
e. testing and debugging
d. Scalability
Which one of the following is the similarity between threads and process ?
a. All threads can access every address in the task
b. Threads are design to assist one other
c. Threads can create children
d. Threads are not independent of one another
e. none of the mentioned
c. Threads can create children
Which one of the following is not a multithreading model ?
a. Many-to-one
b. Many to many
c. one-to-one
d. two to one
e. none of the mentioned
d. two to one
Which one of the following is not shared by threads ?
a. data section
b. program counter
c. code section
d. OS resources
e. none of the mentioned
b. program counter
Which one of the following id the advantage of Kernel-level-threads ?
a. Simple representation
b. Kernel has full knowledge of all threads
c. Simple management
d. There is a lack of coordination between threads and OS kernel
e. The kernel-level threads are slow and inefficient
b. Kernel has full knowledge of all threads