码迷,mamicode.com
首页 > 编程语言 > 详细

多线程

时间:2014-08-07 02:56:28      阅读:273      评论:0      收藏:0      [点我收藏+]

标签:os   io   for   ar   cti   res   ad   ef   

multithreading,multiprocessing

Block multi-threading:context switching意味着从现有的寄存器集切换到另一套

Interleaved multithreading:similar to preemptive multitasking,more modern,需要更大的cache和TLB

Simutaneous multithreading:

instruction level parallelism:measure of  how many of the operations in a computer program can be performed simultaneously

 

spinlock:repeatedly checking if the lock is available. thread remains active but is not performing a useful task. (busy waiting)

avoid overhead from os process rescheduling or context-switching, efficient if threads are blocked for a short period. wasteful if  held for longer durations.

 

superscalar cpu

 

Monitor(synchronization): important
semaphores

test-and-set

 

 

processes, kernel threads, user threads, fiber(coroutines)

 

inter-process communication

 

 

interrupt:

hardware interrupt:

 

non-blocking algorithm:

wait-freedom:

lock-freedom:

software interrupt:

多线程,布布扣,bubuko.com

多线程

标签:os   io   for   ar   cti   res   ad   ef   

原文地址:http://www.cnblogs.com/starfuxks/p/3896105.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!