Вы находитесь на странице: 1из 26

ITE 250

OS quiz # 3
Instructions:
• Write T if the statement is true and F if the
statement is false.
• Strictly no Erasures!!! Erasures = 0 point
• Trust yourself do not trust the answer of your
seatmate.
READY???
1.

• Thread pools allows the


number of threads in the
application(s) to be bound
to the size of the pool.
2.

• Hyperthreading uses
resources efficiently,
enable multiple cores to
run on each core and
increasing CPU throughput.
3.

• Thread library provides


programmer with DLL for
creating and managing
threads
4.

• Single threaded process


can implement 3 different
types of threading model.
5.

• Lamda’s law identifies


performance gains from
adding additional cores to an
application that has both
serial and parallel
components
6.

• Data parallelism distributes


subsets of the same data
across multiple cores, same
operation on each.
7.

• Task parallelism distributes


threads across cores, each
thread performing unique
operation.
8.

• Intel core i3 can have 4


cores with hyperthreading.
9.

• Resource sharing may allow


continued execution if part of
process is blocked, especially
important for user interfaces.
10.

• Concurrency implies a
system can perform more
than one task
simultaneously
11.

• clone() allows a child task


to share the address space
of the parent task.
12.

• TEB (thread environment


block) – includes pointer to
process to which thread
belongs and to KTHREAD,
in kernel space
13.

• ETHREAD (executive thread


block) – has scheduling and
synchronization info,
kernel-mode stack, pointer
to TEB, in kernel space
14.

• The register set, stacks, and


private storage area are
known as the context of
the thread.
15.

• The intermediate data


structure between user
and kernel threads is called
lightweight process.
16.

• Thread-local storage allows


each thread to have its
own copy of data.
17.

• If thread has cancellation


enabled, cancellation
remains pending until
thread disables it.
18.

• Thread to be canceled is
called target thread.
19.

• Deferred cancellation
allows the target thread to
periodically check if it
should be cancelled
20.

• User-defined signal handler


cant override default
handler.
Exchange papers

Write corrected by:


Answers
1. T 11. T
2. T 12. F
3. F 13. F
4. F 14. T
5. F 15. T
6. T 16. T
7. T 17. F
8. F 18. T
9. F 19. T
10. F 20. F