多线程
文章平均质量分 80
tangkegaga
这个作者很懒,什么都没留下…
展开
-
pv原语
PV原语操作详解 PV原语通过操作信号量来处理进程间的同步与互斥的问题。其核心就是一段不可分割不可中断的程序。 信号量的概念1965年由著名的荷兰计算机科学家Dijkstra提出,其基本思路是用一种新的变量类型(semaphore)来记录当前可用资源的数量。 semaphore有两种实现方式: 1) semapho转载 2014-02-14 07:06:38 · 1355 阅读 · 0 评论 -
Linux内核:spinlock和睡眠
Linux内核:spinlock和睡眠 (2012-05-04 21:48:30)转载▼标签: linux spinlock是linux内核锁机制的一种,而linux内核锁机制是linux内核同步机制的一部分。 linux内核同步机制的使用原因是为了避免共享数据之间的竞争出现,它包括per c转载 2014-02-19 09:31:32 · 1165 阅读 · 0 评论 -
thread, looper, handler vs ScheduledExecutorService
1) what is looper, A Class used to run a message loop on a messageQueue for a thread, BUT , it is essentially itsself a thread, think otherwise how it is able to do the loop work. Check the sour原创 2015-06-02 12:59:49 · 997 阅读 · 0 评论