operating system

0.0(0)
Studied by 0 people
call kaiCall Kai
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/46

encourage image

There's no tags or description

Looks like no tags are added yet.

Last updated 12:01 AM on 5/14/26
Name
Mastery
Learn
Test
Matching
Spaced
Call with Kai

No analytics yet

Send a link to your students to track their progress

47 Terms

1
New cards

In which of the following circumstances can cooperative scheduling take place?  

 when a process switches from the running state to the waiting state  

2
New cards

Which of the following are true about process preemption or process switching (not the same, but related ... so consider and select what may be true for either as well as both).

 

Please select all that are true.

When pre-empted, processes can be switched from running to ready state

3
New cards

Which of the following are true about process preemption or process switching (not the same, but related ... so consider and select what may be true for either as well as both).

 

Please select all that are true.

A process running on the CPU may be interrupted by a higher priority process

4
New cards

Which of the following are true about process preemption or process switching (not the same, but related ... so consider and select what may be true for either as well as both).

 

Please select all that are true.


Answer,

Processes are preempted when their time slice expires

5
New cards

Which of the following is NOT true regarding semaphore implementation?


It suffers from the busy waiting problem

6
New cards

The ready queue can be implemented as a _______________.


All of the answers provided

7
New cards

Which of the following system architectures involves multiprocessor scheduling? 


All of the answers provided

8
New cards

Which of the following is NOT true for Peterson’s solution? 

Peterson’s solution works for synchronization among more than two processes

9
New cards

Which of the following is not true about compare_and_swap instruction? 

Set the new value of passed parameter to “TRUE”

10
New cards

When mutex lock is implemented as a binary semaphore, what should its value be initialized to be? 

1

11
New cards

Assume process P0 and P1 are the process before and after a context switch, and PCB0 and PCB1 are respectively their process control block. Which of the following time units are included inside the dispatch latency?


all of the answers provided

12
New cards

In which of the following circumstances can preemptive scheduling take place?


none of the answers provided

13
New cards

Which of the following variables are shared between the processes in Peterson’s solution?

int turn

boolean flag[2]

14
New cards

Which of the following is true for race conditions? 

all the answers given except for the one that says "none of the answers given"

15
New cards

Which of the following can be a solution to the problem of indefinite blockage of low-priority processes? 

Aging 

16
New cards

Which of the following is not true about test_and_set instruction? 

Returns the new value of passed parameter

17
New cards

Which of the following items does not belong to the function of a dispatcher? 

selecting a process among the available ones in the ready queue

18
New cards

Which of the following is true for the solutions to critical-section problems? 

Bounded waiting implies progress, and progress implies no deadlock

19
New cards

In the _________, the process may be changing common variables, updating a table, writing a file, and so on. 

(Pick the best choice to fill in the blank)


critical section

20
New cards

In an asymmetric solution for the dining philosophers problem, deadlock is avoided, because

a philosopher will release a chopstick in case she is unable to acquire the other chopstick.

21
New cards

In an asymmetric solution for the dining philosophers problem, deadlock is avoided, because

any neighboring philosophers would have already acquired one of their chopsticks before attempting to acquire the shared chopstick.

22
New cards

One necessary condition for deadlock is ______, which states that a resource can be released only voluntarily by the process holding the resource.


no preemption

23
New cards

One necessary condition for deadlock is ____, which states that at least one resource must be held in a nonsharable mode.

mutual exclusion

24
New cards

Deadlocks can be prevented only if

at least one of the four necessary conditions cannot hold.

25
New cards
term image

The request will not be granted, since the state after granting the request will be unsafe.

26
New cards

Alternate approaches such as transactional memory or OpenMP are useful, because

some race condition problems that cannot be solved using synchronization mechanisms such as mutex locks and semaphores can be solved using these alternate approaches.

27
New cards

In the solution provided for readers-writers problem in Section 7.1.2, if a writer is in the critical section, and multiple readers and writers are waiting, 

exactly one of the waiting writers will be allowed to enter the critical section when the writer in the critical section exits.

28
New cards

A system will never enter a deadlocked state if

the system uses the deadlock avoidance technique.

29
New cards

In a resource allocation graph, when a process releases a resource,

an assignment edge is removed.

30
New cards

For a thread using POSIX condition variables, this thread

must lock the associated mutex lock before calling pthread_cond_wait( ) and unlock it after calling pthread_cond_signal( ).

31
New cards

POSIX named semaphores

All of the above.

32
New cards

Deadlock prevention using preempting allocated resources cannot be used for


mutexes.

33
New cards

Emergence of multicore systems has put greater emphasis on developing novel techniques for concurrency problems, because

with increased number of processing cores, there is an increased risk of race conditions and deadlocks.

34
New cards

A frame table stores


All of the answers given.

35
New cards

A translation look-aside buffer is used to

cache page table entries.

36
New cards

Given the logical address 0xAEF9 (in hexadecimal) with a page size of 256 bytes, what is the page number?

0xAE

37
New cards

If the base register is loaded with value 12345 and limit register is loaded with value 1000, which of the following memory address access will not result in a trap to the operating system?

12500

38
New cards

Assume a system uses 2-level paging and has a TLB hit ratio of 90%. It requires 15 nanoseconds to access the TLB, and 85 nanoseconds to access main memory. What is the effective memory access time in nanoseconds for this system?

117

39
New cards

If the starting address location changes, in which of the following cases, the program has to be recompiled?

Compile time binding

40
New cards

A page-table base register stores

a pointer to the page table in memory.

41
New cards

A large page size results in

efficient disk I/O

42
New cards

A(n) ______ matches the process with each entry in the TLB.

address-space identifier

43
New cards

 _____ is the method of binding instructions and data to memory performed by most general-purpose operating systems.

Execution time binding

44
New cards

Computing systems need cache because

accessing main memory is slow and cache speeds it up.

45
New cards

Which of the following technique is well suited to support very large address space, e.g. 64-bit address space?


Inverted page tables

46
New cards

A page out operation

moves a page from memory to the backing store.

47
New cards

If execution time binding is used,

physical addresses of process may change over time but logical addresses remain the same.