Preview

Operating System

Satisfactory Essays
Open Document
Open Document
507 Words
Grammar
Grammar
Plagiarism
Plagiarism
Writing
Writing
Score
Score
Operating System
David Wongso (091101879) / VA4
David Steven (091101885) / VA4
Gery Alvin (091101886) / VA4

TUGAS SISTEM OPERASI

4.1 Provide two programming examples in which multithreading does not provide better performance than a single-threaded solution.

* Lebih dari satu thread melakukan I / O pada perangkat yang sama. * Lebih dari satu thread menggunakan data yang sama yang harus dikunci.

4.2 Describe the actions taken by a thread library to context switch between user-level threads.

* Hal ini untuk menyimpan tumpukan data dan data lokal lainnya, yang dapat dengan mudah dilakukan jika ditulis dalam bahasa pemrogrman dan memuat tumpukan data lainnya untuk proses yang sedang dialihkan.

4.3 Under what circumstances does a multithreaded solution using multiple kernel threads provide better performance than a single-threaded solution on a single-processor system?

* Umumnya, setiap situasi di mana pemungutan dihindari menggunakan multithreading, yang memungkinkan thread untuk memblokir daripada berkutat di beberapa kondisi.

4.4 Which of the following components of program state are shared across threads in a multithreaded process?

* Heap memory dan Global variables

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

* Tidak, karena kernel tidak dapat mengetahui tingkat thread pengguna selain dari proses tunggal, yang tentu saja selalu berjalan pada satu CPU.

4.6 As described in Section 4.5.2, Linux does not distinguish between processes and threads. Instead, Linux treats both in the same way, allowing a task to be more akin to a process or a thread depending on the set of flags passed to the clone() system call. However, many operating systems—such as Windows XP and Solaris—treat processes and threads differently. Typically, such systems use a notation wherein the data structure for a process contains pointers to the

You May Also Find These Documents Helpful

  • 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
  • Satisfactory Essays

    What is the difference between a multiprocessor and a multiprocessing system? Multiprocessor is when a computer has more than one processor to do the work, Multiprocessing is when one processor does multiple jobs at once. 4. Where on the disk should you put your /boot partition or the root (/)…

    • 680 Words
    • 10 Pages
    Satisfactory Essays
  • Satisfactory Essays

    2. What is the role of the contentionscope for pthreads? How does it affect the execution…

    • 299 Words
    • 2 Pages
    Satisfactory Essays
  • Good Essays

    Nt1310 Unit 3 Os

    • 1341 Words
    • 6 Pages

    +• Scheduling: Any processor may perform scheduling, which complicates the task of enforcing a scheduling policy and assuring that corruption of the scheduler data structures is avoided. If kernel-level multithreading is used, then the opportunity exists to schedule multiple threads from the same process simultaneously on multiple processors.…

    • 1341 Words
    • 6 Pages
    Good Essays
  • Satisfactory Essays

    CHAPTER 3 QUESTIONS

    • 438 Words
    • 7 Pages

    A significant point about the __________ is that it contains sufficient information so that it is possible to interrupt a running process and later resume execution as if the interruption had not occurred.…

    • 438 Words
    • 7 Pages
    Satisfactory Essays
  • Good Essays

    Question 5 (15 points): Can a multithreaded solution using multiple user-level threads achieve better performance on a multiprocessor system than on a single processor system? Explain.…

    • 723 Words
    • 3 Pages
    Good Essays
  • Good Essays

    Human Multi-Tasking

    • 2120 Words
    • 9 Pages

    The term "multitasking" originated in the computer engineering industry.[1] It refers to the ability of a microprocessor to apparently process several tasks simultaneously.[2] Computer multitasking in single core microprocessors actually involves time-sharing the processor; only one task can actually be active at a time, but tasks are rotated through many times a second. With multi-core computers, each core can perform a separate task simultaneously.…

    • 2120 Words
    • 9 Pages
    Good Essays
  • Good Essays

    Os Assignment

    • 1231 Words
    • 5 Pages

    Q3. Describe the differences between symmetric and asymmetric multiprocessing. What are three advantages and one disadvantage of multiprocessor systems?…

    • 1231 Words
    • 5 Pages
    Good Essays
  • Satisfactory Essays

    Tips Setelah Putus Cinta

    • 296 Words
    • 2 Pages

    6. Ini hanya masalah waktu dan Anda akan menemukan hubungan baru. Pikirkan secara positif bahwa keputusan tersebut adalah tepat dan Anda bisa melangkah pada kehidupan yang lebih baik lagi kelak.…

    • 296 Words
    • 2 Pages
    Satisfactory Essays
  • Powerful Essays

    kita lihat dari contoh tersebut bukankah komunikasi tersebut yang menimbulkan masalah sendiri adalah manusia nya itu…

    • 1102 Words
    • 5 Pages
    Powerful Essays
  • Powerful Essays

    Harus kita pahami dahulu bahwa teknologi bukan hanya sekedar computer, melainkan harus dipahami secara lingkup yang lebih luas lagi.…

    • 710 Words
    • 3 Pages
    Powerful Essays
  • Good Essays

    Seams and Stiches

    • 1421 Words
    • 6 Pages

    Interlooping is the passing of a loop of thread through another loop formed by a different thread.…

    • 1421 Words
    • 6 Pages
    Good Essays
  • Satisfactory Essays

    Untuk membandingkan keadaan sebelum diberikan perlakuan, perlakuan yang diberikan adalah bimbingan kelompok untuk mengetahui kontrol diri peserta didik.…

    • 1088 Words
    • 5 Pages
    Satisfactory Essays
  • Powerful Essays

    Operating Systems

    • 1806 Words
    • 8 Pages

    An operating system capable of supporting and utilizing more than one computer processor. Some examples of multiprocessing operating systems are Linux, Unix, Windows 2000.…

    • 1806 Words
    • 8 Pages
    Powerful Essays
  • Better Essays

    Hyper Threading Technology

    • 4539 Words
    • 19 Pages

    Hyper-Threading Technology brings the concept of simultaneous multi-threading to a general processor architecture. Hyper-Threading Technology makes a single physical processor appear as two logical processors; the physical execution resources are shared and the architecture state is duplicated for the two logical processors. From a software or architecture perspective, this means operating systems and user programs can schedule processes or threads to logical processors as they would on multiple physical processors. From a microarchitecture perspective, this means that instructions from both logical processors will persist and execute simultaneously on shared execution resources.…

    • 4539 Words
    • 19 Pages
    Better Essays