2 Answers - Sort by: Date | Rating
Multithreading is a technique in which a process, executing an application, is divided into threads that can run concurrently. Thread: A dispatch unit of work. It includes a processor context (which includes the program counter and stack pointer) and its own data area for a stack (to enable subroutine branching). A thread executes sequentially and is interruptible so that the processor can turn to another thread. Process: A collection of one or more threads and associated system resources (such as memory containing code and data, open files, and devices).
This corresponds closely to the concept of a program in execution. By breaking a single application into multiple threads, the programmer has great control over the modularity of the application and the timing of application related events. Multithreading is useful for applications that perform a number of essentially independent tasks that do not need to be serialized. An example is a database server that listens for and processes numerous client requests. With multiple threads running within the same process, switching back and forth among threads involves less processor overhead than a major process switch between different processors. Threads are also useful for structuring processes that are part of the OS kernel.
This corresponds closely to the concept of a program in execution. By breaking a single application into multiple threads, the programmer has great control over the modularity of the application and the timing of application related events. Multithreading is useful for applications that perform a number of essentially independent tasks that do not need to be serialized. An example is a database server that listens for and processes numerous client requests. With multiple threads running within the same process, switching back and forth among threads involves less processor overhead than a major process switch between different processors. Threads are also useful for structuring processes that are part of the OS kernel.
0
0
Multiple threads can be executed in parallel to each other on many computer systems. This multi-threading usually occurs by time slicing. It is similar to time division multiplexing, wherein a single processor switches between so many different threads. This switching happens so fast as to give the illusion of simultaneity to the end user. For example, most of the PCs today only contain one processor core, but you can run multiple programs at once, such as typing in a document editor while listening to music in an audio playback program; although the user experiences these things as simultaneous, in truth, the processor quickly switches back and forth between these separate processes.
On a multiprocessor or multi-core system, now coming into broad use, threading can be achieved through multiprocessing, wherein different threads and processes can run accurately simultaneously on different processors or cores.
Many of the modern operating systems directly support both time-sliced and multiprocessor threading with a process scheduler. The operating system kernel permits programmers to manipulate threads via the system call interface. Some implementations are called a kernel thread, while a lightweight process is a particular type of kernel thread that shares the same state and information.
On a multiprocessor or multi-core system, now coming into broad use, threading can be achieved through multiprocessing, wherein different threads and processes can run accurately simultaneously on different processors or cores.
Many of the modern operating systems directly support both time-sliced and multiprocessor threading with a process scheduler. The operating system kernel permits programmers to manipulate threads via the system call interface. Some implementations are called a kernel thread, while a lightweight process is a particular type of kernel thread that shares the same state and information.
0
0
- What Operating Systems Are Compatable To Active Directory?
- What Operating Systems Are Compatible To Active Directory?
- How Old Is Club Penguin?
- How To Set Living Solutions A17G0510?
- What Is 30 Percent Of 4200?
- Can You Tell Me A Email To Un Lock Whisper Chat?
- What Is The Newest Code For Pixiehollow?
- How To Get Movies From The Playstation Network?
- Where Do I Find A Deoxys?
- What Route Do You Find Mew In On Pokemon Platinum 209,219or229?
- Why I Can Download Inpage Free?
- What Are Some Good Lesbian Sites?
- How To Get A Boat In Liberty City Stories?
- How Many Levels You Do To Open New Town San Andreas?
- Is There Any Codes For Imvu?
- How Many Missions Do You Have To Do To Open A New Town San Andreas?
- Can U Get Cod For Psp?
- How Do You Evolve A Lucario In Explorers Of Sky?
- What Websites Can I Find A Sims 3 Registration Code?
- What Is Trey Songz AIM?
- I CAN NOT & I Mean CAN NOT Find ANY Godzilla Coloring Pages...... What Do I Do Now?
- How Will You Use Monitors For Process Synchronization?
- Where Is The Hallowed Tower?
- How You You Set You Add Me Private On Myspace?
- How To Upload A Picture From My Camera To Computer Example T O My Space?

New Comment - Comments are editable for 5 min.