码迷,mamicode.com
首页 >  
搜索关键字:locks    ( 533个结果
Operating System: Three Easy Pieces --- Lock Concurrent Data Structures (Note)
Before moving beyong locks, we will first describe how to use locks in some common datastructures. Adding locks to a data structure to make it usable ...
分类:其他好文   时间:2015-11-03 08:04:03    阅读次数:270
Operating System: Three Easy Pieces --- Pthread Locks (Note)
The name that the POSIX library uses for a lock is a mutex, as it is used to provide mutualexclusion between threads, i.e., if one thread is in the cr...
分类:其他好文   时间:2015-10-26 13:30:42    阅读次数:244
Operating System: Three Easy Pieces --- Locks (Note)
From the introduction to concurrency, we saw one of the fundamental problems in concurrentprogramming: we would like to execute a series of instructio...
分类:其他好文   时间:2015-10-26 13:27:42    阅读次数:170
启动三个线程A,B,C,按ABC的顺序输出10次
package?jun; import?java.util.concurrent.ExecutorService; import?java.util.concurrent.Executors; import?java.util.concurrent.locks.Condition; import?java.util.concurrent.locks.Lock; import?j...
分类:编程语言   时间:2015-10-25 18:04:45    阅读次数:181
【POJ 1351】Number of Locks
Number of LocksTime Limit:1000MSMemory Limit:10000KTotal Submissions:1198Accepted:589DescriptionIn certain factory a kind of spring locks is manufactu...
分类:其他好文   时间:2015-10-23 21:20:53    阅读次数:235
SQL Server被锁的表以及解锁
select request_session_id spid,OBJECT_NAME(resource_associated_entity_id) tableNamefrom sys.dm_tran_locks whereresource_type='OBJECT'spid 锁表进程tableNam...
分类:数据库   时间:2015-10-21 15:19:06    阅读次数:192
Java多线程-新特征-锁(上)
在Java5中,专门提供了锁对象,利用锁可以方便的实现资源的封锁,用来控制对竞争资源并发访问的控制,这些内容主要集中在java.util.concurrent.locks 包下面,里面有三个重要的接口Condition、Lock、ReadWriteLock。Condition:Condition 将...
分类:编程语言   时间:2015-10-20 23:59:31    阅读次数:450
Java并发(三)使用显式的Lock和Condition对象
在之前的Java并发(一)wait()与notifyAll()一文中的例子中,我们使用了wait()和notifyAll()来模拟了给汽车打蜡和抛光的情景。在JavaSE5中,还提供了java.util.concurrent.locks.Condition对象供我们使用。...
分类:编程语言   时间:2015-10-12 10:50:01    阅读次数:321
使用ReentrantLock+Condition实现消费者和生产者模式
import?java.util.concurrent.locks.Condition; import?java.util.concurrent.locks.Lock; import?java.util.concurrent.locks.ReentrantLock; public?class?ProductQueue<T>?{ ????private?final?...
分类:其他好文   时间:2015-10-09 12:31:18    阅读次数:240
ReentrantLock
ReentrantLock:http://docs.oracle.com/javase/7/docs/api/java/util/concurrent/locks/ReentrantLock.html#lockInterruptibly()publicvoidlockInterruptibly() ...
分类:其他好文   时间:2015-10-02 10:07:15    阅读次数:181
533条   上一页 1 ... 35 36 37 38 39 ... 54 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!