Section II will cover multithreading background and architectures Section III

Section ii will cover multithreading background and

This preview shows page 3 - 5 out of 9 pages.

M-on-N implementation cannot be deserted [4]. Section II will cover multithreading background, and architectures, Section III discuss all three multithreading models, Section IV will see some pros and cons of M: N and 1:1 thread model. In Section V we will focus semantics. Finally, Sec- ton VI will cover performance evaluation; Section VII mentions covers Conclusion. 2 Multithreading Background and Architecture Multithreading refers to the ability of an Operating System to support multiple and concurrent paths of execution within a process [13]. To discriminate processes from threads, the unit of scheduling and dispatching is called a thread or LWP (light- weight process) LWP is seen as virtual processor by thread library, while the unit having assigned all resources referred to as a process (or task). In a multithreaded environment, a process is defined as the unit of resource allocation and a unit of protection [9] [10]. In multithreaded environment, there is still a single PCB (process control block) and user address space for each process but there are separate stacks for each thread and also a separate control block for each thread containing register values, priority, and other thread-related information [9] [10]. The multithreading architecture of Solaris is depicted in figure 1 . Process in figure represents a 1:1 scheduling model. M: N model: Pros and Cons 1:1 model: Pros and Cons Need for multiple schedulers: Scheduler Activation: In case of hybrid threading two schedulers are at work. Scheduler activation is implemented in kernel. So, we have concluded that scheduler activation helps but not a com- plate solution [1] [5] [6]. Simplicity: This is simple to implement at the library level, but it’s expensive in terms of kernel resources. But this method depends on underlying kernel thread model...
Image of page 3
Fig. 1. Solaris Multithreading model 3 Multithreading Models The multithreading techniques are divided into three main categories: user-threads, kernel-threads and hybrid threading models. Table 2.0 given below shows a matrix for Models, important factors and the operating system. 4 M: N thread model vs. 1:1 thread model This section will cover these two models comprehensively with pros and cons of both threading models M: N (hybrid thread- in) and 1:1(kernel threading) [2] [5] [6] [7] [8]. There are many advantage and disadvantages of 1:1 and M: N thread models. While M: N model offers many advantages over 1:1 and M:1 model, it’s not an entirely satisfactory solution [12]. Table 2. M: N thread model vs. 1:1 thread model Number of kernel threads: How to determine the best number of kernel threads? User specified OS dynamically adjusts number depending on system load Kernel routines can be multithreaded: The underlying kernel can be multithreaded and can simultaneously schedule many threads of the process on many processors. Blocking is done on a thread level.
Image of page 4
Image of page 5

You've reached the end of your free preview.

Want to read all 9 pages?

  • Fall '16
  • Sir Adnan
  • Context switch, Native POSIX Thread Library

What students are saying

  • Left Quote Icon

    As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

    Student Picture

    Kiran Temple University Fox School of Business ‘17, Course Hero Intern

  • Left Quote Icon

    I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

    Student Picture

    Dana University of Pennsylvania ‘17, Course Hero Intern

  • Left Quote Icon

    The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

    Student Picture

    Jill Tulane University ‘16, Course Hero Intern

Stuck? We have tutors online 24/7 who can help you get unstuck.
A+ icon
Ask Expert Tutors You can ask You can ask You can ask (will expire )
Answers in as fast as 15 minutes
A+ icon
Ask Expert Tutors