Preview

poject manajment

Satisfactory Essays
Open Document
Open Document
1063 Words
Grammar
Grammar
Plagiarism
Plagiarism
Writing
Writing
Score
Score
poject manajment
Chapter 4:
Threads

Ch4: Threads

CPIS 222– Principles of Operating Systems -2012– KAU

Dr.Lamiaa Elrefaei

1

Outline
 Overview

 Multithreading Models
 Thread Libraries
 Threading Issues

Operating System Examples

Ch4: Threads

CPIS 222– Principles of Operating Systems -2012– KAU

Dr.Lamiaa Elrefaei

2

4.1 Overview
 Single-threaded process – multithreaded process:


A thread is a basic unit of CPU utilization.



Traditional process has a single thread of control.



Multithreaded process can perform more than one task at a time.

 Many applications are multithreaded.


A web browser might have one thread displaying images while another thread retrieving data from the network.



A word processor may have a thread for responding to keystrokes from the users, and another thread for performing spelling and grammar checking in the background.  Many operating system kernels are now multithreaded.
 Several threads operate in the kernel.
 Each thread performs a specific task.
 For example, Linux uses a kernel thread for managing the amount of free memory in the system.
Ch4: Threads

CPIS 222– Principles of Operating Systems -2012– KAU

Dr.Lamiaa Elrefaei

3

4.1 Overview (cont’d)
 A thread comprises:


A thread ID.



A program counter.



A register set.



A stack.

 It shares with other threads belonging to the same process:


Code section.



Data section.



Other operating-system resources, such as open files.

Ch4: Threads

CPIS 222– Principles of Operating Systems -2012– KAU

Dr.Lamiaa Elrefaei

4

4.1 Overview (cont’d)
Heavyweight Process= process

Ch4: Threads

Lightweight Process = Thread

CPIS 222– Principles of Operating Systems -2012– KAU

Dr.Lamiaa Elrefaei

5

New Process Description Model

Single-threaded process

multithreaded process
Ch4: Threads

CPIS 222– Principles of Operating Systems

You May Also Find These Documents Helpful

  • Powerful Essays

    MFH OPORD

    • 2221 Words
    • 11 Pages

    HQ, USARC DCS G-3/5/7 approves the following message for release to the individual(s)/unit(s) listed above. UNCLASSIFIED//FOR OFFICIAL USE ONLY. Reference: AR 670-1, Wear and Appearance of Army Uniforms and Insignia, 3 FEB 05. Time Zone used Throughout the Order: (ZULU) 1. SITUATION.…

    • 2221 Words
    • 11 Pages
    Powerful Essays
  • Satisfactory Essays

    D Poad Reflective Account

    • 415 Words
    • 2 Pages

    On Friday, April 7th, 2017 at approximately 1015 hours I was doing my daily safety and security checks in D Pod. I was doing my safety security checks, I noticed that inmate BLANK was quietly sitting on her bunk bed with head down. I noticed that the inmate BLANK was not her usual self; it’s a sign of depression.…

    • 415 Words
    • 2 Pages
    Satisfactory Essays
  • Satisfactory Essays

    Marenzo Unit 15

    • 500 Words
    • 2 Pages

    1. What is the range of normal gestation for humans? What are the current guidelines for good prenatal care beyond those mentioned here? For example, why do pregnant women need extra calcium, iron, and folic acid?…

    • 500 Words
    • 2 Pages
    Satisfactory Essays
  • Good Essays

    This study was inspired by the literary elements in the book Prietita y la llorana. The book used to be passed down orally through generations, until it was published. It demonstrated how literacy was taught and passed on in their culture. Schools in South Texas believe their Mexican-American youth are not at the same literacy level as the rest of the children. However, the Family Institute for Early Literacy (FIELD) used this book to begin a study to see if these children are in fact literate when they begin school, they just aren't aligned with the current standards of teaching. Their goal was to discover the methods that these parents used to teach their children literacy.…

    • 690 Words
    • 3 Pages
    Good Essays
  • Good Essays

    Prohibtion

    • 544 Words
    • 3 Pages

    America suffered a huge alcohol problem in the 1920s. The use of alcohol swept the nation but eventually got out of hand. Most Americans were unable to drink responsibly which lead to the start of prohibition. On December 17, 1917 the 18th amendment was passed putting on the sell and manufacturing of alcohol. This had America outraged. In turn people did whatever they had to, to get their alcohol again. The crime rate all over America rose dramatically. Prohibition was horrible on the American economy. Lastly, because of the great corruption in government there was a difficulty. Prohibition was passed for so many reasons, but these being the three main reasons America changed its mind about it.…

    • 544 Words
    • 3 Pages
    Good Essays
  • Powerful Essays

    Mamfunction

    • 2219 Words
    • 9 Pages

    * chest pain: the chest can feel like it is being pressed or squeezed by a heavy object, and pain can radiate from the chest to the jaw, neck, arms and back…

    • 2219 Words
    • 9 Pages
    Powerful Essays
  • Better Essays

    OM 3010

    • 1341 Words
    • 5 Pages

    What is Operations Management? Operations Management is a very important role in any business, company, and corporation. It creates goods and services that can be sold to make profit (Investopedia.com). There are many resources that involve the process of Operations such as employees, facilities, inventory, and time. Operations Management is important because it helps make profit if the resources are used properly. Operations Management explores the way organizations produce and distribute goods and services. It focuses on organizing a process of what they are working on or distributing.…

    • 1341 Words
    • 5 Pages
    Better Essays
  • Better Essays

    Lock Free Data Structures

    • 3562 Words
    • 16 Pages

    couldn’t stand a chance against lock-free data structures, which are all the rage in the multithreaded…

    • 3562 Words
    • 16 Pages
    Better Essays
  • Powerful Essays

    unisa englilsh

    • 7014 Words
    • 29 Pages

    ENG1511/ /101/3/201 14 Tu utoria lett 10 /2014 al ter 01/3/ 4 English Proficienc for Unive cy ersity Stud y dies EN 511 NG15 Sem ers 1 & 2 meste Dep partme of English Stu ent f udies IMPO ORTANT IN NFORMAT TION: tter ns tion This tutorial let contain important informat about you module. ur CONTENTS Page 1 INTRODUCTION ................................................................................................................. 3 2 PURPOSE OF AND OUTCOMES FOR THE MODULE ...................................................…

    • 7014 Words
    • 29 Pages
    Powerful Essays
  • Satisfactory Essays

    Assignement 1

    • 366 Words
    • 2 Pages

    1) How do the origins of the words manager and management relate to what we know about managers and management today?…

    • 366 Words
    • 2 Pages
    Satisfactory Essays
  • Better Essays

    Mandament van spolie

    • 2656 Words
    • 8 Pages

    The issue in this scenario is whether the mandament van spolie can be used in circumstances where there is dispossession of incorporeals. South African law is a mixed system thus, a mixture between civil law in the form of Roman Dutch law and English Common law. In terms of South African law, a clear distinction is made between possession and ownership. Ownership is seen as a real right in respect of a thing, in actual fact it is the strongest real right providing the owner with the fullest entitlements with regard to the thing and it is protected by an action rei vindicatio.1 On the other hand, Badenhorst et al2 is of the view that possession is in the first place a factual relationship of control over a thing, but whether it is also a real right concerns an old age debate which still remains clouded in confusion. Nevertheless, this essay focuses on the protection of quasi-possession by the mandament van spolie, which is the only possessory remedy in the true sense of the word in South African law.…

    • 2656 Words
    • 8 Pages
    Better Essays
  • Powerful Essays

    Thesis Ojt

    • 1312 Words
    • 6 Pages

    On the job training or OJT is one method by which students is given a chance to apply the theories and computations that they have learned from the school. It also helps the students to acquire relevant knowledge and skills by per forming in actual work setting. Colleges and universities require their students to undergo such training within a specific number of hours as part of the curriculum. For the students, an OJT or internship program provides opportunities to go through the actual methodologies of a specific job using the real tools, equipments and documents. In effect, the workplace becomes a development venue for a student trainee to learn more about his chosen field and practice what he has learn from academy. On the other hand, an effective OJT program also benefits the companies who accept trainees. First OJT or intern provides additional manpower for a lesser labor cost than a regular employee. Most of them are all eager to learn the ropes so chances are high that they will cooperate. Employers can use this internship strategy as a method in recruiting new Employees. Since the trainer or the supervisor can follow the trainees’ progress, he can gauge based on performance, behavior and attitude if the trainee will make a good recruit after the completion of his internship.…

    • 1312 Words
    • 6 Pages
    Powerful Essays
  • Satisfactory Essays

    muksu consitution

    • 1098 Words
    • 5 Pages

    DO HEREBY dedicate our efforts to declare, adopt and bind ourselves by this Constitution of MULTIMEDIA UNIVERSITY STUDENTS UNION.…

    • 1098 Words
    • 5 Pages
    Satisfactory Essays
  • Good Essays

    Argumantative Esseys

    • 700 Words
    • 3 Pages

    The total plan that arranges the four components into the curriculum, i.e. objectives, content, learning experience and evaluation.…

    • 700 Words
    • 3 Pages
    Good Essays
  • Good Essays

    maumo thesis

    • 50198 Words
    • 189 Pages

    This work is dedicated to my dear parents, Wilson and Philomena Auma, for giving their…

    • 50198 Words
    • 189 Pages
    Good Essays