On This Page

This set of Operating System (OS) Multiple Choice Questions & Answers (MCQs) focuses on Operating System Set 22

Q1 | If one thread opens a file with read privileges then                        
  • other threads in the another process can also read from that file
  • other threads in the same process can also read from that file
  • any other thread can not read from that file
  • all of the mentioned
Q2 | The time required to create a new thread in an existing process is                        
  • greater than the time required to create a new process
  • less than the time required to create a new process
  • equal to the time required to create a new process
  • none of the mentioned
Q3 | When the event for which a thread is blocked occurs?
  • thread moves to the ready queue
  • thread remains blocked
  • thread completes
  • a new thread is provided
Q4 | The jacketing technique is used to
  • convert a blocking system call into non blocking system call
  • create a new thread
  • communicate between threads
  • terminate a thread
Q5 | Termination of the process terminates
  • first thread of the process
  • first two threads of the process
  • all threads within the process
  • no thread within the process
Q6 | Which one of the following is not a valid state of a thread?
  • running
  • parsing
  • ready
  • blocked
Q7 | The register context and stacks of a thread are deallocated when the thread?
  • terminates
  • blocks
  • unblocks
  • spawns
Q8 | Thread synchronization is required because                        
  • all threads of a process share the same address space
  • all threads of a process share the same global variables
  • all threads of a process can share the same files
  • all of the mentioned
Q9 | A thread is also called                        
  • light weight process(lwp)
  • heavy weight process(hwp)
  • process
  • none of the mentioned
Q10 | A thread shares its resources(like data section, code section, open files, signals) with
  • other process similar to the one that the thread belongs to
  • other threads that belong to similar processes
  • other threads that belong to the same process
  • all of the mentioned
Q11 | Resource sharing helps                        
  • share the memory and resources of the process to which the threads belong
  • an application have several different threads of activity all within the same address space
  • reduce the address space that a process could potentially use
  • all of the mentioned
Q12 | Multithreading on a multi – CPU machine
  • has multiple threads of execution                        
  • has a single thread of execution
  • can have multiple or a single thread for execution
  • none of the mentioned
Q13 | A process having multiple threads of control implies                        
  • it can do more than one task at a time
  • it can do only one task at a time, but much faster
  • it has to use only one thread per process
  • none of the mentioned
Q14 | The kernel is                of user threads.
  • a part of
  • the creator of
  • unaware of
  • aware of
Q15 | Because the kernel thread management is done by the Operating System itself
  • kernel threads are faster to create than user threads
  • kernel threads are slower to create than user threads
  • kernel threads are easier to manage as well as create then user threads
  • none of the mentioned
Q16 | If a kernel thread performs a blocking system call,                          
  • the kernel can schedule another thread in the application for execution
  • the kernel cannot schedule another thread in the same application for execution
  • the kernel must schedule another thread of a different application for execution
  • the kernel must schedule another thread of the same application on a different processor
Q17 | Which of the following is FALSE?
  • context switch time is longer for kernel level threads than for user level threads
  • user level threads do not need any hardware support
  • related kernel level threads can be scheduled on different processors in a multiprocessor system
  • blocking one kernel level thread blocks all other related threads
Q18 | The model in which one kernel thread is mapped to many user-level threads is called
  • many to one model
  • one to many model
  • many to many model
  • one to one model
Q19 | The model in which one user-level thread is mapped to many kernel level threads is called                        
  • many to one model
  • one to many model
  • many to many model
  • one to one model
Q20 | In the Many to One model, if a thread makes a blocking system call                        
  • the entire process will be blocked
  • a part of the process will stay blocked, with the rest running
  • the entire process will run
  • none of the mentioned
Q21 | In the Many to One model, multiple threads are unable to run in parallel on multiprocessors because of                        
  • only one thread can access the kernel at a time
  • many user threads have access to just one kernel thread
  • there is only one kernel thread
  • none of the mentioned
Q22 | The One to One model allows
  • increased concurrency                        
  • decreased concurrency
  • increased or decreased concurrency
  • concurrency equivalent to other models
Q23 | Which of the following is the drawback of the One to One Model?
  • increased concurrency provided by this model
  • decreased concurrency provided by this model
  • creating so many threads at once can crash the system
  • creating a user thread requires creating the corresponding kernel thread
Q24 | When is the Many to One model at an advantage?
  • when the program does not need multithreading
  • when the program has to be multi- threaded
  • when there is a single processor
  • none of the mentioned
Q25 | In the Many to Many model true concurrency cannot be gained because
  • other threads are strictly prohibited from running
  • other threads are allowed to run
  • other threads only from other processes are allowed to run
  • none of the mentioned