스레드,thread

Difference between r1.4 and the current

@@ -2,17 +2,95 @@

[[리눅스_커널,Linux_kernel]] 스레드 패키지는 [[POSIX]] 1003.1c 표준과 호환된다.

Sub:
user-level_thread 사용자 레벨 스레드
kernel-level_thread 커널 레벨 스레드
스레드풀 thread_pool - curr at [[풀,pool?action=highlight&value=thread_pool]]
 
Topics
communication between threads
스레드 사이 [[통신,communication]]
Ggl:"스레드 간 통신" Naver:"스레드 간 통신" Bing:"스레드 간 통신"
방법은 shared_memory , .....
주의해야 할 것은 race_condition , .....
 
----
MKLINK
[[concurrency]]
[[concurrent_programming]] - 멀티스레드 프로그래밍 (multithread programming ? multithreaded programming ?)과 차이?
concurrent_Haskell or Haskell_concurrency
{
 
 
''from https://www.youtube.com/watch?v=cuHD2qTXxL4''
{
{{{
forkIO :: IO () -> IO ThreadId
forkIO act
 
....
 
f :: Int -> Int -> IO ()
f a b = do
let x = a+b
putStrLn $! show x
 
main :: IO ()
main = do
....
forkIO $ f 1 2
.....
 
 
}}}
MVar : mutable locations that can be shared
}
}
[[실행,execution]] - del ok
[[execution_model]] Google:thread+execution+model
[[multithreading]]
Google:threading+vs+multithreading
[[threading]] ? WtEn:threading Google:threading NN:threading .... Srch:threading
[[multithreading]] WtEn:multithreading Google:multithreading NN:multithreading .... Srch:multithreading
[[shared_variable]]s - threaded programs에서의 topic. [[mutex]]=[[mutual_exclusion]] [[semaphore]] etc.
[[동기화,synchronization]] - semaphore로 threads를 동기화 가능.
[[thread_safety]]
[[thread_safety]] =,thread_safety . thread_safety Srch:thread_safety
{
스레드안정성 ..이 최선의 번역?
 
thread-safe adj.
 
https://ko.wikipedia.org/wiki/스레드_안전
https://en.wikipedia.org/wiki/Thread_safety
 
... Google:thread.safety Naver:thread.safety
}
[[TLS]] = [[thread_local_storage]] or [[thread-local_storage]]
{
[[WpEn:Thread-local_storage]]
= https://en.wikipedia.org/wiki/Thread-local_storage
}
[[deadlock]] Srch:deadlock
{
데드락
교착상태 (wpko)
 
여러 스레드들이 다른 스레드가 점유한 [[자원,resource]]이 해제(lock이 해제)될때까지 무한정으로 대기하는?
 
https://ko.wikipedia.org/wiki/교착_상태
https://en.wikipedia.org/wiki/Deadlock
}
Compare [[프로세스,process]] [[태스크,task]]

----
tmp twin:
[[WpSimple:Thread_(computer_science)]]
= https://simple.wikipedia.org/wiki/Thread_%28computer_science%29
 
Twins:
[[WpKo:스레드_(컴퓨팅)]]
= https://ko.wikipedia.org/wiki/스레드_%28컴퓨팅%29
[[WpEn:Thread_(computing)]]
= https://en.wikipedia.org/wiki/Thread_%28computing%29



프로세스,process 안의 더 작은 실행 단위.

리눅스_커널,Linux_kernel 스레드 패키지는 POSIX 1003.1c 표준과 호환된다.

Sub:
user-level_thread 사용자 레벨 스레드
kernel-level_thread 커널 레벨 스레드
스레드풀 thread_pool - curr at 풀,pool?action=highlight&value=thread_pool

Topics
communication between threads
스레드 사이 통신,communication
Ggl:스레드 간 통신 Naver:스레드 간 통신 Bing:스레드 간 통신
방법은 shared_memory , .....
주의해야 할 것은 race_condition , .....


MKLINK
concurrency
concurrent_programming - 멀티스레드 프로그래밍 (multithread programming ? multithreaded programming ?)과 차이?
concurrent_Haskell or Haskell_concurrency
{


from https://www.youtube.com/watch?v=cuHD2qTXxL4
{
forkIO :: IO () -> IO ThreadId
forkIO act

....

f :: Int -> Int -> IO ()
f a b = do
  let x = a+b
  putStrLn $! show x

main :: IO ()
main = do
....
forkIO $ f 1 2
.....


MVar : mutable locations that can be shared
}
}
실행,execution - del ok
Google:threading vs multithreading
threading ? WtEn:threading Google:threading NN:threading .... Srch:threading
multithreading WtEn:multithreading Google:multithreading NN:multithreading .... Srch:multithreading
shared_variables - threaded programs에서의 topic. mutex=mutual_exclusion semaphore etc.
동기화,synchronization - semaphore로 threads를 동기화 가능.
thread_safety =,thread_safety . thread_safety Srch:thread_safety
{
스레드안정성 ..이 최선의 번역?

thread-safe adj.



여러 스레드들이 다른 스레드가 점유한 자원,resource이 해제(lock이 해제)될때까지 무한정으로 대기하는?





Twins: