Preview

operating system

Good Essays
Open Document
Open Document
1561 Words
Grammar
Grammar
Plagiarism
Plagiarism
Writing
Writing
Score
Score
operating system
Chapter: 4
4.3)
Which of the following components of the program state are shared across threads in a multithreaded process?
a. Register value
b. Heap memory
c. Global variable
d. Stack memory
Answer:
The threads of a multithreaded process share heap memory and global variables. Each thread has its separate set of register values and a separate stack.

4.4)
Output at LINE C is 5. Output at LINE P is 0.

4.6)
What are the two differences between user-level and kernel-level threads? Under what circumstances is one type is better than other?
Answer:
1- User-level threads are unknown by the kernel, whereas the kernel is aware of kernel threads.
2- On systems using either M: 1 or M: N mapping, user threads are scheduled by the thread library and the kernel schedules kernel threads.
3- Kernel threads need not be associated with a process whereas every user thread belongs to a process. Kernel threads are generally more expensive to maintain than user threads as they must be represented with a kernel data structure.

4.9)

Can a multithreaded solution using multiple user-level threads achieve better performance on a multiprocessor system than a single processor system? Explain.

Answer:
A multithreaded system comprising of multiple user-level threads cannot make use of the different processors in a multiprocessor system simultaneously. The operating system sees only a single process and will not schedule the different threads of the process on separate processors. Consequently, there is no performance benefit associated with executing multiple user-level threads on a multiprocessor system.

4.11)
Under what circumstances does a multithreaded solution using multiple kernel threads provide better performance than a single-threaded solution on a single-processor system?
Answer:
When a kernel thread suffers a page fault, another kernel thread can be switched in to use the interleaving time in a useful manner. A single-threaded process,

You May Also Find These Documents Helpful

  • Good Essays

    1 Which statements are true concerning the shared memory buffering used by an Ethernet switch? (Choose two.)…

    • 2145 Words
    • 9 Pages
    Good Essays
  • Satisfactory Essays

    SD1230 Lab 1

    • 239 Words
    • 2 Pages

    1. What happens to the volatile memory when the power is lost? –RAM is deleted…

    • 239 Words
    • 2 Pages
    Satisfactory Essays
  • Satisfactory Essays

    Nt1310 Unit 1 Study Guide

    • 378 Words
    • 2 Pages

    Multiple threads can interfere with each other when sharing hardware resources such as caches or translation lookaside buffers (TLBs). As a result, execution times of a single thread are not improved but can be degraded, even when only one thread is executing, due to lower frequencies or additional pipeline stages that are necessary to accommodate thread-switching hardware.…

    • 378 Words
    • 2 Pages
    Satisfactory Essays
  • Good Essays

    Nt1210 Chapter 1 Review

    • 1315 Words
    • 6 Pages

    5. This chapter describes the concepts behind how a CPU reads the contents from RAM. Which of the following is true about the process of read data. As described in the chapter?…

    • 1315 Words
    • 6 Pages
    Good Essays
  • Powerful Essays

    En1320 Unit 1 Research Paper 1

    • 27742 Words
    • 111 Pages

    programs is not new, the renewed and increased interest is aided by certain trends in…

    • 27742 Words
    • 111 Pages
    Powerful Essays
  • Good Essays

    One of the key functions of an operating system is the process management. Linux OS system is very dynamic with constantly changing computing needs. These needs tend to be centered on the process. Processes can be either long or short lived, so managing these processes is very important. Linux incorporates a very flexible design which contains a separate unit to take on the process management task. In a Linux operating system processes are created and represented by an allocated task_struct.…

    • 749 Words
    • 3 Pages
    Good Essays
  • Satisfactory Essays

    Unit 8 System Performance

    • 251 Words
    • 2 Pages

    2. With more processes loading and running at the same time the performance of the system will degrade due to increased disk activity.…

    • 251 Words
    • 2 Pages
    Satisfactory Essays
  • Satisfactory Essays

    Chapter 2 Assessment

    • 264 Words
    • 1 Page

    3) What are the two run modes for Windows programs? D) Kernel mode and user mode…

    • 264 Words
    • 1 Page
    Satisfactory Essays
  • Satisfactory Essays

    Faith Integration

    • 613 Words
    • 3 Pages

    1.6 How does the distinction between kernel mode and user mode function as a rudimentary form of protection (security) system?…

    • 613 Words
    • 3 Pages
    Satisfactory Essays
  • Satisfactory Essays

    Hudson's Bay Company

    • 253 Words
    • 2 Pages

    B) Para-Virtualization in the second one. In a Para-virtualization system the systems are aware of each other. This system doesn’t need as much processing power to manage its operating system. This whole system works as one unit.…

    • 253 Words
    • 2 Pages
    Satisfactory Essays
  • Better Essays

    IT 600 Module One Lecture

    • 1256 Words
    • 5 Pages

    Since a CPU can run only one process at a time, process management must handle the…

    • 1256 Words
    • 5 Pages
    Better Essays
  • Satisfactory Essays

    Unknown

    • 314 Words
    • 2 Pages

    The Linux kernel is loaded in its entirety into main memory during startup; no part of it can be paged out. On the other hand, Windows privileged processes must lock pages of allocated memory to prevent them from being paged out. Each of these approaches has benefits and risks. What are they? Answer this question in a journal entry.…

    • 314 Words
    • 2 Pages
    Satisfactory Essays
  • Satisfactory Essays

    CHAPTER 3 QUESTIONS

    • 438 Words
    • 7 Pages

    When a process is in the _________ state it is in secondary memory but is available for execution as soon as it is loaded into main memory.…

    • 438 Words
    • 7 Pages
    Satisfactory Essays
  • Powerful Essays

    Let us first begin by looking at how the number of threads of were utilized. As a way of…

    • 1188 Words
    • 5 Pages
    Powerful Essays
  • Powerful Essays

    Liham Pangaplikasyon

    • 6908 Words
    • 28 Pages

    Any thread can be at any step in this process at any time, and they can step on each other when a shared resource is involved. The state of x can be changed by another thread during the time between x is being read and when it is written back.…

    • 6908 Words
    • 28 Pages
    Powerful Essays

Related Topics