> anishgoyal


NotesOperating System Concepts Essentials (Silberschatz) Lecture 4

Threads

calendar_today   article 1579 words   access_time 9 min   replay Modified

Table of Contents

Motivation

Multicore Programming

Multicore Programming Challenges

Types of Parallelism

Multithreading Models

Many-to-One Model

One-to-One Model

Many-to-Many Model

Thread Libraries

Java Threads

1public interface Runnable 
2{ 
3	public abstract void run(); 
4}

Examples of Instantiation

 1// Method 1
 2class MyThread extends Thread {
 3	public void run() {
 4		// Code goes here
 5    }
 6}
 7
 8// Method 2
 9class MyRunnable implements Runnable {
10	public void run() {
11	    // Code goes here
12    }
13}

Implicit Threading

Thread Pools

Threading Issues

fork() And exec() Syscalls

Signal Handling

Thread Cancellation

Thread-Local Storage

Scheduler Activations

Threads Programming Model

References

Sources

Graph