首页 > 编程语言 > 详细

多线程

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

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

多线程

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

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!