翻訳と辞書
Words near each other
・ Three Ages of Buddhism
・ Three Alls Policy
・ Three Aloes mine
・ Three ancestral treasures
・ Three Anchor Bay
・ Three Ancient Springs
・ Three and One-half Fathom Ledge
・ Three and Out
・ Three and – an Extra
・ Three Angels and Young Tobias
・ Three Angels Broadcasting Network
・ Three Angels' Messages
・ Three Arabian Nuts
・ Thrayodashi
・ Thread
Thread (computing)
・ Thread (network protocol)
・ Thread (yarn)
・ Thread angle
・ Thread automaton
・ Thread control block
・ Thread eel
・ Thread of Lies
・ Thread of Time
・ Thread pitch gauge
・ Thread pool pattern
・ Thread protector
・ Thread restorer
・ Thread Routes
・ Thread safety


Dictionary Lists
翻訳と辞書 辞書検索 [ 開発暫定版 ]
スポンサード リンク

Thread (computing) : ウィキペディア英語版
Thread (computing)

In computer science, a thread of execution is the smallest sequence of programmed instructions that can be managed independently by a scheduler, which is typically a part of the operating system. The implementation of threads and processes differs between operating systems, but in most cases a thread is a component of a process. Multiple threads can exist within the same process, executing concurrently (one starting before others finish) and share resources such as memory, while different processes do not share these resources. In particular, the threads of a process share its instructions (executable code) and its context (the values of its variables at any given moment).
On a single processor, multithreading is generally implemented by time slicing (as in multitasking), and the central processing unit (CPU) switches between different ''software threads''. This context switching generally happens frequently enough that the user perceives the threads or tasks as running at the same time (in parallel). On a multiprocessor or multi-core system, multiple threads can be executed in parallel (at the same instant), with every processor or core executing a separate thread simultaneously; on a processor or core with ''hardware threads'', separate software threads can also be executed concurrently by separate hardware threads.
Threads made an early appearance in OS/360 Multiprogramming with a Variable Number of Tasks (MVT) in 1967, in which they were called "tasks". Process schedulers of many modern operating systems directly support both time-sliced and multiprocessor threading, and the operating system kernel allows programmers to manipulate threads by exposing required functionality through the system call interface. Some threading implementations are called ''kernel threads'', whereas ''lightweight processes'' (LWP) are a specific type of kernel thread that share the same state and information. Furthermore, programs can have ''user-space threads'' when threading with timers, signals, or other methods to interrupt their own execution, performing a sort of ad hoc time-slicing.
==Threads vs. processes==
Threads differ from traditional multitasking operating system processes in that:
*processes are typically independent, while threads exist as subsets of a process
*processes carry considerably more state information than threads, whereas multiple threads within a process share process state as well as memory and other resources
*processes have separate address spaces, whereas threads share their address space
*processes interact only through system-provided inter-process communication mechanisms
*context switching between threads in the same process is typically faster than context switching between processes.
Systems such as Windows NT and OS/2 are said to have "cheap" threads and "expensive" processes; in other operating systems there is not so great a difference except the cost of an address space switch which on some architectures (notably x86) results in a translation lookaside buffer (TLB) flush.

抄文引用元・出典: フリー百科事典『 ウィキペディア(Wikipedia)
ウィキペディアで「Thread (computing)」の詳細全文を読む



スポンサード リンク
翻訳と辞書 : 翻訳のためのインターネットリソース

Copyright(C) kotoba.ne.jp 1997-2016. All Rights Reserved.