Chapter 4 Threads. Process A. Thread2 Thread ID (TID) PC Register Set Stack. Code Section Data Section Open Files
|
|
- Brent York
- 6 years ago
- Views:
Transcription
1 Chapter 4 Threads Thread f Cntrl -- Fundamental Unit f CPU Utilizatin Prcess A Thread1 Thread ID (TID) PC Register Set Stack Thread2 Thread ID (TID) PC Register Set Stack Thread3 Thread ID (TID) PC Register Set Stack Cde Sectin Data Sectin Open Files Signals Single Threaded Prcess Traditinal Prcess versus Multithreaded Prcess Heavyweight Prcess 1:30 Fr each new prcess created by a single threaded prcess t service a need, a Slaris Operating System using a multithreaded prcess can create 30 new threads t serve as many new needs. Als fe each cntext-switch between prcesses, Slaris can cntext-switch between 5 threads. Mst mdern perating system kernels are multithreaded; each kernel thread perfrms a specific task, e.g., Slaris uses a set f threads t supprt interrupt handling. Als Linux uses a thread t manage free memry, i.e., keep track f all f the free memry available. Benefits Respnsiveness even if a tread is suspended, e.g., I/O request, r perfrming a very lng peratin, e.g., lading an image, the ther threads and hence the prcess, may keep running Resurce Sharing all the threads in a prcess share the same address space prvided by the prcess Prcesses nly share resurces via external techniques, such as memry sharing, messages & pipes Ecnmy -- avid additinal and unnecessary memry allcatin resurce allcatins prcess cntext-switching Scalability a Multithreaded Prcess running n a Multiprcessr Architecture threads frm ne prcess can run n mre than ne prcessr
2 Multicre Prgramming -- O/S cnsiders each cre t be a separate prcessr Cncurrency Single cre executin f threads will be interleaved ver time Multiple cres system can assign a separate thread t each cre the threads can run simultaneusly Prgramming Requirements divide activities int separate, cncurrent tasks balance tasks t ensure that they d wrk f equal value data accessed by, and pssibly mdified by, the separate tasks must be segregated int separate bundles t be run n the separate cres if data assigned t ne task is used by anther task, the executin f the tasks must be synchrnized t accmmdate the data dependency prgram running in parallel n multiple cres many different executin paths testing & debugging prcedures and techniques must be reevaluated fr effectiveness User threads prvided & managed at the user level withut kernel invlvement Kernel threads prvided & managed by the O/S Windws XP Linux Mac OS/X Slaris supprt kernel threads Many-T-One Mdel maps many user threads t ne kernel thread thread library in user space prvides thread management -- efficient thread makes a blcking call prcess is blcked nly ne thread can access the kernel at a time multiple threads cannt run in parallel n multiprcessrs GNU Prtable Threads implements the many-t-ne mdel Slaris prvides tw different methds t implement threads, ne f which is the Green Treads Library which implements the many-t- ne mdel
3 One-T-One Mdel maps each user thread t a separate kernel thread thread makes a blcking call prcess is nly blcked if it is a single threaded prcess, r all the ther threads are als blcked allws multiple threads frm ne prcess t run n multiple prcessrs creating a USER THREAD requires creating A KERNEL THREAD creating kernel threads burdens the applicatin perfrmance mst implementatins f the ne-t-ne mdel restrict the number f kernel threads Linux implements the ne-t-ne mdel; Windws als implements the ne-t-ne mdel Slaris supprts the ne-t-ne mdel as well as the ne-t-many mdel via the Green Treads Library Many-t-Many Mdel multiplexes many user threads t an equal r smaller set f kernel threads number f kernel threads may be specific t particular applicatin r particular machine number f user threads created is nt limited crrespnding kernel threads may run in parallel n multiprcessrs thread perfrms blcking system call kernel can schedule anther thread frm the same prcess prcess des nt blck prcess cntext-switch is nt required Tw-Level Mdel variatin f the many-t-many mdel multiplexes many user threads t an equal r smaller set f kernel threads allws the binding f a user thread t a kernel thread Implemented in IRIX, HP-UX, Tru-64 UNIX
4 Thread Libraries prvide API s fr creating & managing threads Implementatin User-space Library n kernel supprt library prgrams and data structures reside in user space invking a functin in the API results in a LOCAL FUNCTION CALL t user space Kernel-level Library supprted directly by the O/S library prgrams and data structures reside in kernel space invking a functin in the API fr the library results in a SYSTEM CALL t the kernel POSIX Pthreads may be implemented as either a user level library r a kernel level library Slaris, Linux, Mac OS/X, Tru64 Unix Win32 Tread Library is a kernel level library available nly n Windws Operating Systems Java Tread Library allws threads t be created and managed directly in Java prgrams; but the JVM runs either n a special Java chip r n tp f the hst O/S hence the Java Tread API generally implemented using the hst system thread library Win32 API fr a Windws Hst System Pthreads fr a Unix, Linux r Mac OS/X Hst System Cmparisn f the fllwing Tread libraries -- cmputatin f sum as indicated belw:
5 Pthreads POSIX Standard (IEEE c) Specificatin Implementatin is left t the discretin f the develpers /** Mst Unix/Linux/OS X users * gcc thrd.c -lpthread *Slaris users must enter * gcc thrd.c -lpthreads * * Figure 4.9 Gagne, Galvin, Silberschatz * Operating System Cncepts 8 th Ed. * Cpyright Jhn Wiley & Sns */ #include <pthread.h> #include <stdi.h> int sum; /* this data is shared by the thread(s) */ vid *runner(vid *param); /* the thread */ int main(int argc, char *argv[]) /* CREATES A SINGLE THREAD FOR THE MAIN FUNCTION */ pthread_t tid; /* the thread identifier */ pthread_attr_t attr; /* set f attributes fr the thread STACK SIZE, SCHEDULING INFORMATION, etc */ if (argc!= 2) fprintf(stderr,"usage: a.ut <integer value>\n"); /*exit(1);*/ return -1; if (ati(argv[1]) < 0) fprintf(stderr,"argument %d must be nn-negative\n",ati(argv[1])); /*exit(1);*/ return -1; /* get the default attributes */ pthread_attr_init(&attr); /* &attr retrieves default attributes; ptrhead_attr_init(&attr) sets attributes */ /* create the thread */ pthread_create(&tid,&attr,runner,argv[1]); /* CREATES A SECOND THREAD */ /* nw wait fr the thread t exit */ pthread_jin(tid,null); printf("sum = %d\n",sum); /The thread will begin cntrl in this functin vid *runner(vid *param) int i, upper = ati(param); sum = 0; if (upper > 0) fr (i = 1; i <= upper; i++) sum += i; pthread_exit(0); name f the prcedure r functin where the new thread will begin executin argv[1] parameter passed n the cmmand line the main thread utputs the cmputed value causes parent thread t wait fr secnd thread t terminate, i.e., execute the pthread_exit(0) cmmand
6 Win32 Threads /** This prgram creates a separate thread using the CreateThread() system call. *Figure 4.10 Gagne, Galvin, Silberschatz * Operating System Cncepts - Eighth Editin * Cpyright Jhn Wiley & Sns */ #include <stdi.h> #include <windws.h> DWORD Sum; /* glbal declaratin f data t be shared by the thread(s) unsigned 32-bit integer */ /* the thread runs in this separate functin */ DWORD WINAPI Summatin(PVOID Param) DWORD Upper = *(DWORD *)Param; fr (DWORD i = 0; i <= Upper; i++) Sum += i; return 0; Prcedure r functin t be executed by the secnd thread int main(int argc, char *argv[]) DWORD ThreadId; /* unique id fr the thread thrughut the /s */ HANDLE ThreadHandle; /* a reference t a kernel thread structure */ int Param; // d sme basic errr checking if (argc!= 2) fprintf(stderr,"an integer parameter is required\n"); return -1; Param = ati(argv[1]); if (Param < 0) fprintf(stderr, "an integer >= 0 is required \n"); return -1; thread attributes security infrmatin, stack size, flag indicating whether t start in a suspended state r make it eligible fr the CPU (shrt-term) scheduler. Default attributes make the thread eligible fr the scheduler. creates secnd thread // create the thread ThreadHandle = CreateThread(NULL, 0, Summatin, &Param, 0, &ThreadId); if (ThreadHandle!= NULL) WaitFrSingleObject(ThreadHandle, INFINITE); ClseHandle(ThreadHandle); printf("sum = %d\n",sum); causes the main thread t wait fr the secnd threads terminatin main thread then utputs the result f the cmputatin perfrmed by the secnd thread
7 Java Threads Java supprts tw independent prcedures fr creating Java threads create a new class derived frm the Thread class and verride its run( ) methd define a class that implements the Runnable interface /**This prgram creates a separate thread by implementing the Runnable interface. * Figure 4.11 Gagne, Galvin, Silberschatz Operating System Cncepts - 8 th Ed. * Cpyright Jhn Wiley & Sns */ class Sum private int sum; public int get() return sum; public vid set(int sum) this.sum = sum; Java shares data between the main thread in the Driver (main) class and the wrker thread in the Summatin class via the Sum class which includes an accessr methd, i.e., get( )methd, and a mutatr methd, i.e., set( ) methd, fr just such a purpse. class Summatin implements Runnable private int upper; private Sum sumvalue; Summatin(int upper, Sum sumvalue) if (upper < 0) thrw new IllegalArgumentExceptin(); this.upper = upper; this.sumvalue = sumvalue; public interface Runnable public abstract vid run( ); definitin f Summatin cnstructr public vid run() int sum = 0; fr (int i = 0; i <= upper; i++) sum += i; sumvalue.set(sum); public class Driver public static vid main(string[] args) first thread created if (args.length!= 1) System.err.println("Usage Driver <integer>"); System.exit(0); run( ) verrides the default run( ) methd, e.g., Runnable interface run( ) start( ) methd executin allcates memry in kernel space initializes the new thread in the kernel calls the run methd directly, hence making the thread eligible t be run in the JVM Java user cde never directly calls the run( ) methd Sum sumobject = new Sum(); int upper = Integer.parseInt(args[0]); secnd thread defined Thread wrker = new Thread(new Summatin(upper, sumobject)); wrker.start(); secnd thread created & started try wrker.jin(); main thread waits fr the terminatin f the secnd thread catch (InterruptedExceptin ie) System.ut.println("The sum f " + upper + " is " + sumobject.get()); first thread utputs the value
8 Thread Issues if a single thread in multithreaded prcess issues frk( ) system call, shuld the new prcess duplicate all the threads f the parent prcess and thus be multithreaded r duplicate nly the single thread and thus be single threaded thread cancellatin asynchrnus cancellatin dwnlading images n the web may leave sme resurces un-reclaimed deferred cancellatin synchrnus cancellatin ntice issued f target thread cancellatin, e.g., cancellatin flag is set cancellatin ccurs after target thread checks the cancellatin flag check is perfrmed at cancellatin pint cancellatin pint pint f executin where thread may be safely cancelled Signals Synchrnus Signals prcess peratin causes signal signal delivered t the prcess Asynchrnus Signals signal generated by an event external t the running prcess Signal Handlers Default User Defined Tw Versins f frk( ) Linux e.g., ne versin duplicates nly the thread that invked the frk( ) call the ther duplicates all the threads f the parent prcess Multithreaded Prcesses deliver the signal t the thread t which the signal applies every thread in the prcess a specified set f threads designated thread that handles all signals fr the prcess Unix allw threads t blck signals signal is delivered t the first thread nt blcking it cmmand delivering a Unix signal kill(pid_t tid, int signal) Windws Asynchrnus Prcedure Calls (APC) user thread specifies a functin t call when the user thread receives ntificatin f a particular event ntificatin delivered t a particular thread via the functin
9 Thread Pls limit the ttal number f threads in system at any ne time service requests with existing threads frm the thread pl eliminate cnstant thread creatin & deletin verhead when pl is empty, stack incming thread requests; service thse requests as threads becme available dynamically adjust the number f threads in the pl depending upn traffic demands Thread Specific Data ne transactin ne transactin identifier ne set f transactin data ne thread Scheduler Activatins Many-t-Many Mdel Tw-Level Mdel -- binding user thread t kernel thread Light Weight Prcess LWP User library LWP is virtual prcessr, i.e., user library can schedule user threads n the LWP each LWP is attached t a kernel tread If the kernel thread blcks LWP blck user thread blcks efficient executin requires that there be ne LWP fr each ptential, cncurrent blcking call kernel prvides t each prcess a set f LWP s each prcess schedules threads n any available LWP in the set Upcall kernel infrms the prcess abut certain events, e.g., impending blcks f specific thread Upcall Handler allcates a new LWP t the prcess saves the state f the blcking thread schedules an eligible thread t run n the new LWP, hence it allws the prcess t cntinue when the blcking event ends, an upcall is made t the thread library infrming it that the thread is nw eligible t run allcates anther new LWP t the prcess prcess can schedule an eligible thread t execute
10 Windws XP Threads Win32 API One-t-One Mdel Fiber Library functinality f the Many-t-Many Mdel Thread Cmpnents tid register set prcessr status user stack used when thread is in user mde kernel stack used when thread is in kernel mde private strage area private data used by run-time libraries dynamic link libraries DLL thread cntext Thread Data Structures Executive Thread Blck Kernel Thread Blck Thread Envirnmental Blck ETHREAD thread start address Pinter t parent prcess KTHREAD scheduling & synchrnizatin infrmatin kernel stack TEB thread identifier user stack thread lcal strage kernel space user space
11 Linux Threads task prcess thread frk( ) creates new prcess clne( ) creates new entity which varies between a new prcess and a new thread flags CLONE_FS share file-system infrmatin CLONE_VM share memry space CLONE_SIGHAND share signal handlers CLONE_FILES share pen files all flags set new prcess is created n flags set new thread is created task data structure, i.e., struct task_struct struct task_struct pen files signal handling infrmatin virtual memry etc pen files virtual memry signal handling infrmatin frk( ) create new task data structure, i.e., struct task_struct cpy all data frm riginal structure t new structure create new structures fr pen files, signal handling infrmatin, virtual memry cpy infrmatin frm ld structures t the new structures clne( ) create new task data structure, i.e., struct task_struct depending upn what flags are set, use pinters in the new task structure t reference the ld structures create new structures cpy the data frm the ld structures t the new structures set the task pinters t reference the new structures Native POSIX Thread Library (NPTL) POSIX-cmpliant Thread Mdel thread creatin cheaper than task creatin
12
Operating systems. Module 7 IPC (Interprocess communication) PART I. Tami Sorgente 1
Operating systems Mdule 7 IPC (Interprcess cmmunicatin) PART I Tami Srgente 1 INTERPROCESS COMMUNICATION Prcesses within a system may be independent r cperating Cperating prcess can affect r be affected
More informationCS370 Operating Systems
CS370 Operating Systems Colorado State University Yashwant K Malaiya Spring 2018 Lecture 7 Threads Slides based on Text by Silberschatz, Galvin, Gagne Various sources 1 1 FAQ How many processes can a core
More informationCS370 Operating Systems
CS370 Operating Systems Colorado State University Yashwant K Malaiya Fall 2017 Lecture 8 Slides based on Text by Silberschatz, Galvin, Gagne Various sources 1 1 FAQ How many partners can we cave for project:
More informationCS370 Operating Systems
CS370 Operating Systems Colorado State University Yashwant K Malaiya Spring 2019 Lecture 7 Threads Slides based on Text by Silberschatz, Galvin, Gagne Various sources 1 1 FAQ Amdahls law example: Person
More informationCS4500/5500 Operating Systems Computer and Operating Systems Overview
Operating Systems Cmputer and Operating Systems Overview Yanyan Zhuang Department f Cmputer Science http://www.cs.uccs.edu/~yzhuang UC. Clrad Springs Ref. MOS4E, OS@Austin, Clumbia, UWisc Overview Recap
More informationChapter 4: Threads. Chapter 4: Threads
Chapter 4: Threads Silberschatz, Galvin and Gagne 2009 Chapter 4: Threads Overview Multithreading Models Thread Libraries Threading Issues Operating System Examples Windows XP Threads Linux Threads 4.2
More informationChapter 5: Threads. Single and Multithreaded Processes
Overview Multithreading Models Threading Issues Pthreads Windows XP Threads Linux Threads Java Threads Chapter 5: Threads 5.1 Silberschatz, Galvin and Gagne 2003 Single and Multithreaded Processes 5.2
More informationOperating Systems Prof. Ashok K Agrawala
CSMC 412 Operating Systems Prof. Ashok K Agrawala 2005 Ashok Agrawala Set 4 4.1 Silberschatz, Galvin and Gagne 2005 Threads Overview Multithreading Models Threading Issues Pthreads Windows XP Threads Linux
More informationMultithreaded Programming
Multithreaded Programming The slides do not contain all the information and cannot be treated as a study material for Operating System. Please refer the text book for exams. September 4, 2014 Topics Overview
More informationChapter 4: Threads. Overview Multithreading Models Threading Issues Pthreads Windows XP Threads Linux Threads Java Threads. Operating System Concepts
Chapter 4: Threads Chapter 4: Threads Overview Multithreading Models Threading Issues Pthreads Windows XP Threads Linux Threads Java Threads 4.2 Silberschatz, Galvin and Gagne 2005 Single and Multithreaded
More informationLecture Contents. 1. Overview. 2. Multithreading Models 3. Examples of Thread Libraries 4. Summary
Lecture 4 Threads 1 Lecture Contents 1. Overview 2. Multithreading Models 3. Examples of Thread Libraries 4. Summary 2 1. Overview Process is the unit of resource allocation and unit of protection. Thread
More informationCS4500/5500 Operating Systems Processes
Operating Systems Prcesses Yanyan Zhuang Department f Cmputer Science http://www.cs.uccs.edu/~yzhuang UC. Clrad Springs Ref. MOS3E, OS@Austin, Clumbia, Rchester Recap f the Last Class Cmputer hardware
More informationCSE 3320 Operating Systems Computer and Operating Systems Overview Jia Rao
CSE 3320 Operating Systems Cmputer and Operating Systems Overview Jia Ra Department f Cmputer Science and Engineering http://ranger.uta.edu/~jra Overview Recap f last class What is an perating system?
More informationThreads. What is a thread? Motivation. Single and Multithreaded Processes. Benefits
CS307 What is a thread? Threads A thread is a basic unit of CPU utilization contains a thread ID, a program counter, a register set, and a stack shares with other threads belonging to the same process
More informationCS4500/5500 Operating Systems Synchronization
Operating Systems Synchrnizatin Yanyan Zhuang Department f Cmputer Science http://www.cs.uccs.edu/~yzhuang UC. Clrad Springs Recap f the Last Class Multiprcessr scheduling Tw implementatins f the ready
More informationCS510 Concurrent Systems Class 1a. Linux Kernel Locking Techniques
CS510 Cncurrent Systems Class 1a Linux Kernel Lcking Techniques Intr t kernel lcking techniques (Linux) Why d we need lcking in the kernel? Which prblems are we trying t slve? What implementatin chices
More informationCISC2200 Threads Spring 2015
CISC2200 Threads Spring 2015 Process We learn the concept of process A program in execution A process owns some resources A process executes a program => execution state, PC, We learn that bash creates
More informationCSE3320 Operating Systems Processes Jia Rao
CSE3320 Operating Systems Prcesses Jia Ra Department f Cmputer Science and Engineering http://ranger.uta.edu/~jra Recap f the Last Class Cmputer hardware Time-sharing Space-sharing Characteristics } Lcality,
More informationBut for better understanding the threads, we are explaining it in the 5 states.
Life cycle f a Thread (Thread States) A thread can be in ne f the five states. Accrding t sun, there is nly 4 states in thread life cycle in java new, runnable, nn-runnable and terminated. There is n running
More informationXilinx Answer Xilinx PCI Express DMA Drivers and Software Guide
Xilinx Answer 65444 Xilinx PCI Express DMA Drivers and Sftware Guide Imprtant Nte: This dwnladable PDF f an Answer Recrd is prvided t enhance its usability and readability. It is imprtant t nte that Answer
More informationProgramming Project: Building a Web Server
Prgramming Prject: Building a Web Server Submissin Instructin: Grup prject Submit yur cde thrugh Bb by Dec. 8, 2014 11:59 PM. Yu need t generate a simple index.html page displaying all yur grup members
More informationCSE 3320 Operating Systems Synchronization Jia Rao
CSE 3320 Operating Systems Synchrnizatin Jia Ra Department f Cmputer Science and Engineering http://ranger.uta.edu/~jra Recap f the Last Class Multiprcessr scheduling Tw implementatins f the ready queue
More information操作系统原理与设计. 第 4 章 Threads( 线程 ) 陈香兰. March 28, 2014 中国科学技术大学计算机学院. 陈香兰 ( 中国科学技术大学计算机学院 ) 操作系统原理与设计 March 28, /
操作系统原理与设计 第 4 章 Threads( 线程 ) 陈香兰 中国科学技术大学计算机学院 March 28, 2014 陈香兰 ( 中国科学技术大学计算机学院 ) 操作系统原理与设计 March 28, 2014 1 / 44 提纲 1 Overview 2 Multithreading Models 3 Thread Libraries 4 Threading Issues 5 OS Examples
More informationCSMC 412. Operating Systems Prof. Ashok K Agrawala Ashok Agrawala Set 4. September 2006 CMSC 412 Set 4
CSMC 412 Operating Systems Prof. Ashok K Agrawala 2005 Ashok Agrawala Set 4 1 Threads Overview Multithreading Models Threading Issues Pthreads Windows XP Threads Linux Threads Java Threads 2 Single and
More informationB Tech Project First Stage Report on
B Tech Prject First Stage Reprt n GPU Based Image Prcessing Submitted by Sumit Shekhar (05007028) Under the guidance f Prf Subhasis Chaudhari 1. Intrductin 1.1 Graphic Prcessr Units A graphic prcessr unit
More informationLecture 4 Threads. (chapter 4)
Bilkent University Department of Computer Engineering CS342 Operating Systems Lecture 4 Threads (chapter 4) Dr. İbrahim Körpeoğlu http://www.cs.bilkent.edu.tr/~korpe 1 References The slides here are adapted/modified
More informationChapter 4: Threads. Operating System Concepts with Java 8 th Edition
Chapter 4: Threads 14.1 Silberschatz, Galvin and Gagne 2009 Chapter 4: Threads Overview Multithreading Models Thread Libraries Threading Issues Operating System Examples 14.2 Silberschatz, Galvin and Gagne
More informationChapter 4: Multithreaded Programming. Operating System Concepts 8 th Edition,
Chapter 4: Multithreaded Programming, Silberschatz, Galvin and Gagne 2009 Chapter 4: Multithreaded Programming Overview Multithreading Models Thread Libraries Threading Issues 4.2 Silberschatz, Galvin
More informationCS510 Concurrent Systems Class 2. A Lock-Free Multiprocessor OS Kernel
CS510 Cncurrent Systems Class 2 A Lck-Free Multiprcessr OS Kernel The Synthesis kernel A research prject at Clumbia University Synthesis V.0 ( 68020 Uniprcessr (Mtrla N virtual memry 1991 - Synthesis V.1
More informationLAB 7 (June 29/July 4) Structures, Stream I/O, Self-referential structures (Linked list) in C
LAB 7 (June 29/July 4) Structures, Stream I/O, Self-referential structures (Linked list) in C Due: July 9 (Sun) 11:59 pm 1. Prblem A Subject: Structure declaratin, initializatin and assignment. Structure
More informationParallel Processing in NCAR Command Language for Performance Improvement
Parallel Prcessing in NCAR Cmmand Language fr Perfrmance Imprvement Ping Gu, University f Wyming Mentr: Wei Huang, NCAR C- Mentr: Dave Brwn, NCAR August 1, 2013 Intrductin and Mtivatin ² The NCAR Cmmand
More informationCS 450 Operating System Week 4 Lecture Notes
CS 450 Operating System Week 4 Lecture Notes Reading: Operating System Concepts (7 th Edition) - Silberschatz, Galvin, Gagne Chapter 5 - Pages 129 147 Objectives: 1. Explain the main Objective of Threads
More informationI.-C. Lin, Assistant Professor. Textbook: Operating System Concepts 8ed CHAPTER 4: MULTITHREADED PROGRAMMING
I.-C. Lin, Assistant Professor. Textbook: Operating System Concepts 8ed CHAPTER 4: MULTITHREADED PROGRAMMING Chapter 4: Multithreaded Programming Overview Multithreading Models Thread Libraries Threading
More informationInfrastructure Series
Infrastructure Series TechDc WebSphere Message Brker / IBM Integratin Bus Parallel Prcessing (Aggregatin) (Message Flw Develpment) February 2015 Authr(s): - IBM Message Brker - Develpment Parallel Prcessing
More informationIt has hardware. It has application software.
Q.1 What is System? Explain with an example A system is an arrangement in which all its unit assemble wrk tgether accrding t a set f rules. It can als be defined as a way f wrking, rganizing r ding ne
More informationChapter 4: Threads. Chapter 4: Threads
Chapter 4: Threads Silberschatz, Galvin and Gagne 2013 Chapter 4: Threads Overview Multicore Programming Multithreading Models Thread Libraries Implicit Threading Threading Issues Operating System Examples
More informationChapter 4: Multithreaded Programming Dr. Varin Chouvatut. Operating System Concepts 8 th Edition,
Chapter 4: Multithreaded Programming Dr. Varin Chouvatut, Silberschatz, Galvin and Gagne 2010 Chapter 4: Multithreaded Programming Overview Multithreading Models Thread Libraries Threading Issues Operating
More informationEuropean Component Oriented Architecture (ECOA ) Collaboration Programme: Architecture Specification Part 3: Mechanisms
Eurpean Cmpnent Oriented Architecture (ECOA ) Cllabratin Prgramme: Architecture Specificatin Part 3: Mechanisms BAE Ref N: IAWG-ECOA-TR-007 Dassault Ref N: DGT 144482-E Issue: 5 Prepared by BAE Systems
More informationChapter 4: Multithreaded Programming
Chapter 4: Multithreaded Programming Silberschatz, Galvin and Gagne 2013! Chapter 4: Multithreaded Programming Overview Multicore Programming Multithreading Models Threading Issues Operating System Examples
More informationChapter 4: Threads. Overview Multithreading Models Thread Libraries Threading Issues Operating System Examples Windows XP Threads Linux Threads
Chapter 4: Threads Overview Multithreading Models Thread Libraries Threading Issues Operating System Examples Windows XP Threads Linux Threads Chapter 4: Threads Objectives To introduce the notion of a
More informationOPERATING SYSTEM. Chapter 4: Threads
OPERATING SYSTEM Chapter 4: Threads Chapter 4: Threads Overview Multicore Programming Multithreading Models Thread Libraries Implicit Threading Threading Issues Operating System Examples Objectives To
More informationAndrid prgramming curse Asynchrnus Techniques Intrductin Sessin bjectives Intrductin Asynchrnus Techniques Executr Handler AsyncTask Service & IntentService AsyncQueryHandler Lader By Võ Văn Hải Faculty
More informationQuick Guide on implementing SQL Manage for SAP Business One
Quick Guide n implementing SQL Manage fr SAP Business One The purpse f this dcument is t guide yu thrugh the quick prcess f implementing SQL Manage fr SAP B1 SQL Server databases. SQL Manage is a ttal
More informationCS307: Operating Systems
CS307: Operating Systems Chentao Wu 吴晨涛 Associate Professor Dept. of Computer Science and Engineering Shanghai Jiao Tong University SEIEE Building 3-513 wuct@cs.sjtu.edu.cn Download Lectures ftp://public.sjtu.edu.cn
More informationEastern Mediterranean University School of Computing and Technology Information Technology Lecture2 Functions
Eastern Mediterranean University Schl f Cmputing and Technlgy Infrmatin Technlgy Lecture2 Functins User Defined Functins Why d we need functins? T make yur prgram readable and rganized T reduce repeated
More informationOperating systems. Module 15 kernel I/O subsystem. Tami Sorgente 1
Operating systems Mdule 15 kernel I/O subsystem Tami Srgente 1 SWAP SPACE MANAGEMENT Swap space can be defined as a temprary strage lcatin that is used when system s memry requirements exceed the size
More informationAssignment #5: Rootkit. ECE 650 Fall 2018
General Instructins Assignment #5: Rtkit ECE 650 Fall 2018 See curse site fr due date Updated 4/10/2018, changes nted in green 1. Yu will wrk individually n this assignment. 2. The cde fr this assignment
More informationThis document lists hardware and software requirements for Connected Backup
HPE Cnnected Backup Versin 8.8.6.1 Matrix Revisin 0 This dcument lists hardware and sftware requirements fr Cnnected Backup 8.8.6.1. Data Center This sectin lists the installatin requirements fr the Cnnected
More informationOverview of Threads and Concurrency
CS533 Cncepts f Operating Systems Class 2 Overview f Threads and Cncurrency Questins Why study threads and cncurrent prgramming in an OS class? What is a thread? Is multi-threaded prgramming easy? If nt,
More informationEuropean Component Oriented Architecture (ECOA ) Collaboration Programme: Architecture Specification Part 3: Mechanisms
Eurpean Cmpnent Oriented Architecture (ECOA ) Cllabratin Prgramme: Architecture Specificatin Part 3: Mechanisms BAE Ref N: IAWG-ECOA-TR-007 Dassault Ref N: DGT 144482-F Issue: 6 Prepared by BAE Systems
More information- Replacement of a single statement with a sequence of statements(promotes regularity)
ALGOL - Java and C built using ALGOL 60 - Simple and cncise and elegance - Universal - Clse as pssible t mathematical ntatin - Language can describe the algrithms - Mechanically translatable t machine
More informationOverview of Threads and Concurrency
CS533 Cncepts f Operating Systems Class 2 Overview f Threads and Cncurrency Questins Why study threads and cncurrent prgramming in an OS class? What is a thread? Is multi-threaded prgramming easy? If nt,
More informationNVIDIA S KEPLER ARCHITECTURE. Tony Chen 2015
NVIDIA S KEPLER ARCHITECTURE Tny Chen 2015 Overview 1. Fermi 2. Kepler a. SMX Architecture b. Memry Hierarchy c. Features 3. Imprvements 4. Cnclusin 5. Brief verlk int Maxwell Fermi ~2010 40 nm TSMC (sme
More informationChapter 4: Multi-Threaded Programming
Chapter 4: Multi-Threaded Programming Chapter 4: Threads 4.1 Overview 4.2 Multicore Programming 4.3 Multithreading Models 4.4 Thread Libraries Pthreads Win32 Threads Java Threads 4.5 Implicit Threading
More informationCommon Language Runtime
Intrductin t.net framewrk.net is a general-purpse sftware develpment platfrm, similar t Java. Micrsft intrduced.net with purpse f bridging gap between different applicatins..net framewrk aims at cmbining
More informationComputer Organization and Architecture
Campus de Gualtar 4710-057 Braga UNIVERSIDADE DO MINHO ESCOLA DE ENGENHARIA Departament de Infrmática Cmputer Organizatin and Architecture 5th Editin, 2000 by William Stallings Table f Cntents I. OVERVIEW.
More informationTekmos. TK68020 Microprocessor. Features. General Description. 9/03/14 1
Tekms TK68020 Micrprcessr September 3, 2014 Prduct Overview Features Addressing Mde Extensins fr Enhanced Supprt f High-Level Languages Object-Cde Cmpatible with Earlier M68000 Micrprcessrs Addressing
More informationChapter 4: Threads. Operating System Concepts 9 th Edit9on
Chapter 4: Threads Operating System Concepts 9 th Edit9on Silberschatz, Galvin and Gagne 2013 Chapter 4: Threads 1. Overview 2. Multicore Programming 3. Multithreading Models 4. Thread Libraries 5. Implicit
More informationChapter-10 INHERITANCE
Chapter-10 INHERITANCE Intrductin: Inheritance is anther imprtant aspect f bject riented prgramming. C++ allws the user t create a new class (derived class) frm an existing class (base class). Inheritance:
More informationVMware AirWatch SDK Plugin for Apache Cordova Instructions Add AirWatch Functionality to Enterprise Applicataions with SDK Plugins
VMware AirWatch SDK Plugin fr Apache Crdva Instructins Add AirWatch Functinality t Enterprise Applicatains with SDK Plugins v1.2 Have dcumentatin feedback? Submit a Dcumentatin Feedback supprt ticket using
More informationIT Essentials (ITE v6.0) Chapter 5 Exam Answers 100% 2016
IT Essentials (ITE v6.0) Chapter 5 Exam Answers 100% 2016 1. What are tw functins f an perating system? (Chse tw.) cntrlling hardware access managing applicatins text prcessing flw chart editing prgram
More informationMediaTek LinkIt Development Platform for RTOS Memory Layout Developer's Guide
MediaTek LinkIt Develpment Platfrm fr RTOS Memry Layut Develper's Guide Versin: 1.1 Release date: 31 March 2016 2015-2016 MediaTek Inc. MediaTek cannt grant yu permissin fr any material that is wned by
More informationChapter 4: Multithreaded
Chapter 4: Multithreaded Programming Chapter 4: Multithreaded Programming Overview Multithreading Models Thread Libraries Threading Issues Operating-System Examples 2009/10/19 2 4.1 Overview A thread is
More informationProject 4: System Calls 1
CMPT 300 1. Preparatin Prject 4: System Calls 1 T cmplete this assignment, it is vital that yu have carefully cmpleted and understd the cntent in the fllwing guides which are psted n the curse website:
More informationIMPORTING INFOSPHERE DATA ARCHITECT MODELS INFORMATION SERVER V8.7
IMPORTING INFOSPHERE DATA ARCHITECT MODELS INFORMATION SERVER V8.7 Prepared by: March Haber, march@il.ibm.cm Last Updated: January, 2012 IBM MetaData Wrkbench Enablement Series Table f Cntents: Table f
More informationContents: Module. Objectives. Lesson 1: Lesson 2: appropriately. As benefit of good. with almost any planning. it places on the.
1 f 22 26/09/2016 15:58 Mdule Cnsideratins Cntents: Lessn 1: Lessn 2: Mdule Befre yu start with almst any planning. apprpriately. As benefit f gd T appreciate architecture. it places n the understanding
More informationAn Introduction to Crescendo s Maestro Application Delivery Platform
An Intrductin t Crescend s Maestr Applicatin Delivery Platfrm Intrductin This dcument is intended t serve as a shrt intrductin t Crescend s Maestr Platfrm and its cre features/benefits. The dcument will
More informationChapter 4: Threads. Operating System Concepts 9 th Edition
Chapter 4: Threads Silberschatz, Galvin and Gagne 2013 Chapter 4: Threads Overview Multicore Programming Multithreading Models Thread Libraries Implicit Threading Threading Issues Operating System Examples
More informationThe programming for this lab is done in Java and requires the use of Java datagrams.
Lab 2 Traffic Regulatin This lab must be cmpleted individually Purpse f this lab: In this lab yu will build (prgram) a netwrk element fr traffic regulatin, called a leaky bucket, that runs ver a real netwrk.
More informationThese tasks can now be performed by a special program called FTP clients.
FTP Cmmander FAQ: Intrductin FTP (File Transfer Prtcl) was first used in Unix systems a lng time ag t cpy and mve shared files. With the develpment f the Internet, FTP became widely used t uplad and dwnlad
More informationAndrid prgramming curse Data strage Sessin bjectives Internal Strage Intrductin By Võ Văn Hải Faculty f Infrmatin Technlgies Andrid prvides several ptins fr yu t save persistent applicatin data. The slutin
More informationSOLA and Lifecycle Manager Integration Guide
SOLA and Lifecycle Manager Integratin Guide SOLA and Lifecycle Manager Integratin Guide Versin: 7.0 July, 2015 Cpyright Cpyright 2015 Akana, Inc. All rights reserved. Trademarks All prduct and cmpany names
More informationCS370 Operating Systems
CS370 Operating Systems Colorado State University Yashwant K Malaiya Spring 2019 Lecture 6 Processes Slides based on Text by Silberschatz, Galvin, Gagne Various sources 1 1 FAQ Fork( ) causes a branch
More informationHP Server Virtualization Solution Planning & Design
Cnsulting & Integratin Infrastructure Services HP Server Virtualizatin Slutin Planning & Design Service descriptin Hewlett-Packard Cnsulting & Integratin Infrastructure Cnsulting Packaged Services (HP
More informationDB2 10 for z/os System Administration. Day(s): 5. Overview
DB2 10 fr z/os System Administratin Day(s): 5 Curse Cde: CV851G Overview The curse is updated fr DB2 10 fr z/os. This is the Classrm versin f Instructr-led Online Curse (3V851GB). Administratrs f DB2 10
More informationUiPath Automation. Walkthrough. Walkthrough Calculate Client Security Hash
UiPath Autmatin Walkthrugh Walkthrugh Calculate Client Security Hash Walkthrugh Calculate Client Security Hash Start with the REFramewrk template. We start ff with a simple implementatin t demnstrate the
More informationCS4500/5500 Operating Systems Page Replacement Algorithms and Segmentation
Operating Systems Page Replacement Algrithms and Segmentatin Yanyan Zhuang Department f Cmputer Science http://www.cs.uccs.edu/~yzhuang UC. Clrad Springs Ref. MOSE, OS@Austin, Clumbia, Rchester Recap f
More informationTransmission Control Protocol Introduction
Transmissin Cntrl Prtcl Intrductin TCP is ne f the mst imprtant prtcls f Internet Prtcls suite. It is mst widely used prtcl fr data transmissin in cmmunicatin netwrk such as Internet. Features TCP is reliable
More informationGetting Started with the SDAccel Environment on Nimbix Cloud
Getting Started with the SDAccel Envirnment n Nimbix Clud Revisin Histry The fllwing table shws the revisin histry fr this dcument. Date Versin Changes 09/17/2018 201809 Updated figures thrughut Updated
More informationTo over come these problems collections are recommended to use. Collections Arrays
Q1. What are limitatins f bject Arrays? The main limitatins f Object arrays are These are fixed in size ie nce we created an array bject there is n chance f increasing r decreasing size based n ur requirement.
More informationChe-Wei Chang Department of Computer Science and Information Engineering, Chang Gung University
Che-Wei Chang chewei@mail.cgu.edu.tw Department of Computer Science and Information Engineering, Chang Gung University 1. Introduction 2. System Structures 3. Process Concept 4. Multithreaded Programming
More informationSVC-T using DM36x H.264 codec
SVC-T using DM36x H.264 cdec Applicatin nte Versin 1.1 Date: 10 th Dec 2010 Scalable vide cding n DM36x This dcument describes hw t use tempral scalability in the beta H.264 ver 2.1 cdec. It is assumed
More informationUiPath Automation. Walkthrough. Walkthrough Calculate Client Security Hash
UiPath Autmatin Walkthrugh Walkthrugh Calculate Client Security Hash Walkthrugh Calculate Client Security Hash Start with the REFramewrk template. We start ff with a simple implementatin t demnstrate the
More informationEView/400i Management Pack for Systems Center Operations Manager (SCOM)
EView/400i Management Pack fr Systems Center Operatins Manager (SCOM) Cncepts Guide Versin 7.0 July 2015 1 Legal Ntices Warranty EView Technlgy makes n warranty f any kind with regard t this manual, including,
More informationMySabre API RELEASE NOTES MYSABRE API VERSION 2.1 (PART OF MYSABRE RELEASE 7.1) DECEMBER 02, 2006 PRODUCTION
MySabre API RELEASE NOTES MYSABRE API VERSION 2.1 (PART OF MYSABRE RELEASE 7.1) DECEMBER 02, 2006 PRODUCTION These release ntes pertain t the Prductin release fr MySabre Release 7.1 cntaining MySabre API
More informationGPA: Plugin for OS Command With Solution Manager 7.1
GPA: Plugin fr OS Cmmand With Slutin Manager 7.1 The plugin OS Cmmand can be used in yur wn guided prcedures. It ffers the pssibility t execute pre-defined perating system cmmand n each hst part f the
More informationINVENTION DISCLOSURE
1. Inventin Title. Light Transprt and Data Serializatin fr TR-069 Prtcl 2. Inventin Summary. This inventin defines a light prtcl stack fr TR-069. Even thugh TR-069 is widely deplyed, its prtcl infrastructure
More informationCS420: Operating Systems
Threads James Moscola Department of Physical Sciences York College of Pennsylvania Based on Operating System Concepts, 9th Edition by Silberschatz, Galvin, Gagne Threads A thread is a basic unit of processing
More informationCONTROL-COMMAND. Software Technical Specifications for ThomX Suppliers 1.INTRODUCTION TECHNICAL REQUIREMENTS... 2
Réf. ThmX-NT-SI-CC001 Table f Cntents Sftware Technical Specificatins fr ThmX Authr : Philippe Page 1 / 9 1.INTRODUCTION... 2 2.TECHNICAL REQUIREMENTS... 2 3.DOCUMENTATION REQUIREMENTS... 4 4.COMPUTING
More informationDell EqualLogic PS Series Arrays: Expanding Windows Basic Disk Partitions
TECHNICAL REPORT Dell EqualLgic PS Series Arrays: Expanding Windws Basic Disk Partitins ABSTRACT This Technical Reprt describes hw t expand Micrsft Windws basic disk vlumes after increasing the size f
More informationLab 1 - Calculator. K&R All of Chapter 1, 7.4, and Appendix B1.2
UNIVERSITY OF CALIFORNIA, SANTA CRUZ BOARD OF STUDIES IN COMPUTER ENGINEERING CMPE13/L: INTRODUCTION TO PROGRAMMING IN C SPRING 2012 Lab 1 - Calculatr Intrductin In this lab yu will be writing yur first
More informationTechnical Paper. Installing and Configuring SAS Environment Manager in a SAS Grid Environment with a Shared Configuration Directory
Technical Paper Installing and Cnfiguring Envirnment Manager in a Grid Envirnment with a Shared Cnfiguratin Directry Last Mdified: January 2018 Release Infrmatin Cntent Versin: January 2018. Trademarks
More informationProfiling & Debugging
Prfiling & Debugging CISC 879 Tristan Vanderbruggen & Jhn Cavazs Dept f Cmputer & Infrmatin Sciences University f Delaware 1 Lecture Overview Prfiling and Debugging Why? Tls Data sets Race Cnditin and
More informationCSE 3320 Operating Systems Deadlock Jia Rao
CSE 3320 Operating Systems Deadlck Jia Ra Department f Cmputer Science and Engineering http://ranger.uta.edu/~jra Recap f the Last Class Race cnditins Mutual exclusin and critical regins Tw simple appraches
More informationPurchase Order Approvals Workflow Guide
Purchase Order Apprvals Wrkflw Guide Purchase Order Apprvals may nw be activated fr use with Webvantage Purchase Orders nly. Setup and activatin is dne in Advantage Maintenance. This dcument describes
More informationChapter 4: Threads. Operating System Concepts 9 th Edition
Chapter 4: Threads Silberschatz, Galvin and Gagne 2013 Chapter 4: Threads Overview Multicore Programming Multithreading Models Thread Libraries Implicit Threading Threading Issues Operating System Examples
More informationPrinciples of Programming Languages
Principles f Prgramming Languages Slides by Dana Fisman based n bk by Mira Balaban and lecuture ntes by Michael Elhadad Dana Fisman Lessn 16 Type Inference System www.cs.bgu.ac.il/~ppl172 1 Type Inference
More informationCSE 3320 Operating Systems Page Replacement Algorithms and Segmentation Jia Rao
CSE 0 Operating Systems Page Replacement Algrithms and Segmentatin Jia Ra Department f Cmputer Science and Engineering http://ranger.uta.edu/~jra Recap f last Class Virtual memry Memry verlad What if the
More informationTechnical Paper. Installing and Configuring SAS Environment Manager in a SAS Grid Environment
Technical Paper Installing and Cnfiguring SAS Envirnment Manager in a SAS Grid Envirnment Last Mdified: Octber 2016 Release Infrmatin Cntent Versin: Octber 2016. Trademarks and Patents SAS Institute Inc.,
More informationNiceLabel LMS. Installation Guide for Single Server Deployment. Rev-1702 NiceLabel
NiceLabel LMS Installatin Guide fr Single Server Deplyment Rev-1702 NiceLabel 2017. www.nicelabel.cm 1 Cntents 1 Cntents 2 2 Architecture 3 2.1 Server Cmpnents and Rles 3 2.2 Client Cmpnents 3 3 Prerequisites
More information