Home / CSE MCQs / OS MCQs :: Threads - Operating System

CSE MCQs :: OS MCQs

  1. Which one of the following is not shared by threads?
  2. A.
    program counter
    B.
    stack
    C.
    both (a) and (b)
    D.
    none of the mentioned

    View Answer

    Workspace

    Discuss Discuss in Forum


  3. A process can be:
  4. A.
    single threaded
    B.
    multithreaded
    C.
    both (a) and (b)
    D.
    none of the mentioned

    View Answer

    Workspace

    Discuss Discuss in Forum


  5. If one thread opens a file with read privileges then:
  6. A.
    other threads in the another process can also read from that file
    B.
    other threads in the same process can also read from that file
    C.
    any other thread can not read from that file
    D.
    all of the mentioned

    View Answer

    Workspace

    Discuss Discuss in Forum


  7. The time required to create a new thread in an existing process is:
  8. A.
    greater than the time required to create a new process
    B.
    less than the time required to create a new process
    C.
    equal to the time required to create a new process
    D.
    none of the mentioned

    View Answer

    Workspace

    Discuss Discuss in Forum


  9. When the event for which a thread is blocked occurs,
  10. A.
    thread moves to the ready queue
    B.
    thread remains blocked
    C.
    thread completes
    D.
    a new thread is provided

    View Answer

    Workspace

    Discuss Discuss in Forum


  11. The jacketing technique is used to:
  12. A.
    convert a blocking system call into nonblocking system call
    B.
    create a new thread
    C.
    communicate between threads
    D.
    terminate a thread

    View Answer

    Workspace

    Discuss Discuss in Forum


  13. Termination of the process terminates:
  14. A.
    first thread of the process
    B.
    first two threads of the process
    C.
    all threads within the process
    D.
    no thread within the process

    View Answer

    Workspace

    Discuss Discuss in Forum


  15. Which one of the following is not a valid state of a thread?
  16. A.
    running
    B.
    parsing
    C.
    ready
    D.
    blocked

    View Answer

    Workspace

    Discuss Discuss in Forum


  17. The register context and stacks of a thread are deallocated when the thread:
  18. A.
    terminated
    B.
    blocks
    C.
    unblocks
    D.
    spawns

    View Answer

    Workspace

    Discuss Discuss in Forum


  19. Thread synchronization is required because:
  20. A.
    all threads of a process share the same address space
    B.
    all threads of a process share the same global variables
    C.
    all threads of a process can share the same files
    D.
    all of the mentioned

    View Answer

    Workspace

    Discuss Discuss in Forum