Jan 21, 2009 ... Basic concepts of computer architecture ... “Distributed Systems: Concepts and
Design (4th ... edition)” by George Coulouris, Jean Dollimore,.
1. Sequence 4. CS240. 1. Modern Operating Systems. • Microkernel architecture.
– Assigns only a few essential functions to the kernel. • Address spaces.
For further detail and information see ISO 965-1, -2 og -3. When a thread is ...
2007/1 2 - 4. Information on ISO INCH threads and pitch diameter tolerances d2/
D2.
explain the structure and functions of an operating system,. – illustrate key ...
Operating Systems — Books iii ... monitor reads job and transfer control. – at end
..... When process terminates its memory returns onto the free list, coalescing
ho
the OS). – microkernel-based: non-basic functions float as servers (there is a
small kernel for the basic functionality). Distributed Systems. A distributed system
is:.
An operating system is a type of system software that manages and controls the resources and computing capability of a computer or a computer network, and ...
explain the structure and functions of an operating system,. – illustrate key ...
Inside Windows 2000 (3rd Ed) or Windows Internals (4th Ed). Solomon D and ...
... providing to help them carry out these tasks. 1 http://www.webopedia.com/
TERM/o/operating_system.html. 2 Operating Systems – 3rd Edition, Gary Nutt pg
4 ...
Overview of Main OS “structures”. 2.1 History of Operating Systems: Change! One
view of change: Typical academic computer in 1981 and 2002. 1981. 2002.
System calls allow user-level processes to request services of he operating
system. 2.2 What are the ... As in all cases of modular design, designing an
operating.
Java provides language-level and library support for threads--independent ...
Most applications that use threads are a form of simulation or have a graphical.
The minimal pro le is intended for \embedded systems dedicated to ... Each interrupt handler executes its own handler and transfers .... rent thread are ushed onto the thread's stack before one window will .... aperiodic server model. The design ...
They suggest that because âCPUs are so cheapâ you can buy some extra CPUs ... overall system load independently, eliminating any need for a central server ..... the same amount of overall work (and time if you assume a dedicated CPU for.
This paper is intended as an introduction to distributed operating systems, and
especially to current university research about them. After a .... model. In a time-
sharing system, whether with one or more processors, the ratio of. CPUs to ...
Example: ( Here index is a pointer to an address ) loop: load .... + Operating
system needed to check if routine is in processes' memory address. .... LONG
TERM.
What is an Operating System? •The most important program that runs on your
computer. It manages all other programs on the machine. •Every PC has to have
...
Other bestselling titles by Andrew S. Tanenbaum. Structured Computer ...
microarchitecture, the instruction set architecture level, operating systems, assem
-.
Linux User Groups, Conferences, Community. Ported Linux to scientific
instrumentation. Worked with MontaVista. Wrote a book on Linux. Joined
Red ...
International Journal of Engineering Technology & Management Research | Vol
1| ... Abstract—The android operating system .... com/papers/android-memory-.
Does fork() duplicate only the calling thread or all threads? ... Allows the number of threads in the application(s) to
OPERATING SYSTEMS Threads
Jerry Breecher
4: Threads
1
OPERATING SYSTEM Threads What Is In This Chapter? Overview Multithreading Models Threading Issues Pthreads Windows XP Threads Linux Threads Java Threads
4: Threads
2
Single and Multithreaded Processes
THREADS
4: Threads
3
Benefits
THREADS Responsiveness Resource Sharing Economy Utilization of MP Architectures
4: Threads
4
THREADS
User Threads
Thread management done by user-level threads library Examples - POSIX Pthreads - Mach C-threads - Solaris threads Supported by the Kernel Examples - Windows 95/98/NT/2000 - Solaris - Tru64 UNIX - BeOS - Linux
Kernel Threads
4: Threads
5
Multithreading Models
THREADS Many-to-One
How do user and kernel threads map into each other?
One-to-One Many-to-Many
4: Threads
6
THREADS
Many-to-One
Many user-level threads mapped to single kernel thread. Used on systems that do not support kernel threads. Examples: Solaris Green Threads GNU Portable Threads
4: Threads
7
THREADS
One-to-One
Each user-level thread maps to kernel thread. Examples - Windows 95/98/NT/2000 - Linux
4: Threads
8
Threading Issues
THREADS
Semantics of fork() and exec() system calls Does fork() duplicate only the calling thread or all threads? Thread cancellation Terminating a thread before it has finished Two general approaches: Asynchronous cancellation terminates the target thread immediately Deferred cancellation allows the target thread to periodically check if it should be cancelled
4: Threads
9
THREADS
Threading Issues
Signal handling Signals are used in UNIX systems to notify a process that a particular event has occurred A signal handler is used to process signals 1. Signal is generated by particular event 2. Signal is delivered to a process 3. Signal is handled Options: Deliver the signal to the thread to which the signal applies Deliver the signal to every thread in the process Deliver the signal to certain threads in the process Assign a specific threa to receive all signals for the process Thread pools Create a number of threads in a pool where they await work Advantages: Usually slightly faster to service a request with an existing thread than create a new thread Allows the number of threads in the application(s) to be bound to the size of the pool 4: Threads 10
Threading Issues
THREADS
Thread specific data Allows each thread to have its own copy of data Useful when you do not have control over the thread creation process (i.e., when using a thread pool) Scheduler activations Many:Many models require communication to maintain the appropriate number of kernel threads allocated to the application Scheduler activations provide upcalls - a communication mechanism from the kernel to the thread library This communication allows an application to maintain the correct number kernel threads
4: Threads
11
THREADS
Various Implementations
PThreads A POSIX standard (IEEE 1003.1c) API for thread creation and synchronization API specifies behavior of the thread library, implementation is up to development of the library Common in UNIX operating systems (Solaris, Linux, Mac OS X) Windows Threads Implements the one-to-one mapping Each thread contains A thread id Register set Separate user and kernel stacks Private data storage area The register set, stacks, and private storage area are known as the context of the threads 4: Threads
12
THREADS
Various Implementations
Linux Threads Linux refers to them as tasks rather than threads Thread creation is done through clone() system call clone() allows a child task to share the address space of the parent task (process) Java Threads Java threads may be created by: Extending Thread class Implementing the Runnable interface Java threads are managed by the JVM.
4: Threads
13
Threads WRAPUP We’ve looked in detail at how threads work. Specifically we’ve looked at: Multithreading Models Threading Issues Pthreads Windows XP Threads Linux Threads Java Threads