Professional Documents
Culture Documents
Đề 1
Đề 1
Đề 1
Hệ điều hành (Trường Đại học Sư phạm Kỹ Thuật Thành phố Hồ Chí Minh)
HỆ ĐIỀU HÀNH
1. The CPU transferring from one process/thread to another is called
Select one:
a.context switch
B.task switch
C.process switch
D.the rest of the options are correct
2. Which system call returns the PID of the terminated child process?
Select one:
a.exit
b.wait
c.get
d.fork
3. In a time-sharing operating system, when the CPU time allocated to a process
expires, what state will the process go from running to?
Select one:
a.Blocked
b.Ready
c.Terminated
d.Suspended
4. The performance of the Round Robin algorithm is highly dependent on
Select one:
a.size of the process
b.CPU time required by the process
c. data export/import time of the process
d.The magnitude of the time quantum
5. The term "aging" refers to
Select one:
a.keeping track of how a page is swapped in/out memory according to the LRU
page replacement algorithm
b.initialization of a process in a multilevel queue without a response.
c.gradually increase the priority of long-awaited processes in the system to
overcome the infinite process blocking
d.letting the process sit in memory for a certain amount of time so that it can
accurately estimate the number of pages needed.
6. In Unix, what system call creates a new process?
Select one:
a. create
b.fork
c. new
d.release
7. The state of a process is determined by
Select one:
Select one:
A.thread
Select one:
new
finished
running
ready
10. READY is the state of a process
Select one:
Select one:
the time lost by the dispatcher to stop one process and start another
Select one:
allows processes to communicate and synchronize their actions using the same
address space
Select one:
B.All correct
Select one:
C.Amount of time a deadlocked process has thus far consumed during its
execution
Select one:
A.semaphore
B.pipe
C.socket
D.thread
4. The wait-for graph is a deadlock detection algorithm that is applicable
when ____________
a) all resources have a single instance
b) all resources have multiple instances
c) all resources have a single 7 multiple instances
d) all of the mentioned
binary and counting
5. The two types of semaphore are
6. Which system call returns the PID of the terminated child process?
Select one:
A.wait
B.exit
C.fork
D.get
Select one:
B.Processes running outside its critical section may block other processes.
Select one:
C.an identifier
Select one:
B.to decide if the requested resources for a process have to be given or not
D.to ensure that at least one of the necessary conditions cannot hol
11. .A minimum of _____ variable(s) is/are required to be shared between
processes to solve the critical section problem.
Select one:
a.three
B.four
C.one
D.two
12. Which is the process of invoking the wait operation?
Select one:
A.waiting for another process to complete before it can itself call the signal
operation
Select one:
A.in advance processes rarely know how much resource they will need
Select one:
B.if a process is executing in its critical section, then no other process must
be executing in their critical sections
C.if a process is executing in its critical section, then other processes must
be executing in their critical sections
D.if a process is executing in its critical section, then all the resources of
the system must be blocked until it finishes execution
15.
What is the deadlock handling method? Cả 3 ý đều đúng
A. Use methods to ensure the system will never enter a deadlock state
Select one:
Select one:
a.rolled back
B.terminated
C.aborted
d.queued
18. To avoid deadlock
Select one:
Select one:
B.Define a linear order of resource types and enter the resource level
C.using pipe
D.using thread
21. To _______ to a safe state, the system needs to keep more information
about the states of processes.
a.
abort the process
b.
roll back the process
c.
queue the process
d.
none of the mentioned
22. Those processes should be aborted on occurrence of a deadlock, the
termination of which?
Select one:
Select one:
C.resources
D.operating system
24. To enable a process to wait within the monitor __________
Select one:
25. .In the bakery algorithm to solve the critical section problem
____________
Select one:
B.each process gets a unique number and the one with the lowest number
is served next
C.each process gets a unique number and the one with the highest number
is served next
D.each process receives a number (may or may not be unique) and the one
with the lowest number is served next
Select one:
Select one:
A.semaphore
Select one:
C.All correct
29. In UNIX, the return value for the fork system call is _____ for the child
process and _____ for the parent process.
Select one:
Select one:
A.hold()
B.wait()
C.stop()
D.block()
31. Mutual exclusion can be provided by the __________
Select one:
mutex locks
binary semaphores
32. For sharable resources, mutual exclusion ____________
Select one:
is not required
is required
Select one:
is not required
is required
34. Which of the following statements is not correct for a solution to a
critical section problem ?
Select one:
Processes running outside its critical section may block other processes.
Select one:
Select one:
rarely
frequently
Select one:
Select one:
starvation
race condition
aging
data consistency
39.
Which system call returns the PID of the terminated child process?
Select one:
get
wait
exit
fork
40.What are the operations that can be invoked on a condition variable?
Select one:
Select one:
equal
less efficient
more efficient
Select one:
that can be used by one process at a time and is not depleted by that use
Select one:
In the case of deadlock avoidance, resource requests are always granted if the
resulting state is safe
Select one:
after a process has made a request to enter its critical section and before the
request is granted