- 浏览: 128479 次
- 性别:
- 来自: Singapore
-
文章分类
- 全部博客 (112)
- Tiger Thread (18)
- Perforce (6)
- Spring (5)
- maven (3)
- log4j (3)
- Quartz Scheduler (4)
- unix and linux (12)
- hibernate (3)
- Enum (1)
- Futures and Options (1)
- Market Making (2)
- Java Basic (11)
- Tibco EMS (3)
- F I X message (5)
- equity derivative (2)
- Sybase (3)
- XML (1)
- JUnit (2)
- J A X B 2.0 (1)
- N I O (1)
- windows batch file (1)
- Cruise Control (1)
- util Class (5)
- ant (1)
- JMS (1)
- profiling (0)
- Sql Server (6)
- GXT (2)
- eclipse (1)
- Generics (1)
- Tibco RV (3)
- Autosys (0)
- Message (1)
最新评论
-
houzhe11:
<property name="proxyTa ...
AOP usage -- BeanNameAutoProxyCreator usage
3 implementations: LinkedBlockingQueue, ArrayBlockingQueue, SynchronousQueue,
About threading communication, use wait()/notify()/notifyAll() is really quite low level. And it's error-prone, and it's difficult to debug.
In java5, we strongly suggest using BlockingQueue to take the place of wait()/notify()/notifyAll() communication mechanism.
In the program of Toast O Matic, you can easily see how 4 threads cooperates together using 3 blockingQueue.
- sampleJavaCode.zip (1.4 KB)
- 下载次数: 2
- ToastOMatic.zip (1.4 KB)
- 下载次数: 2
发表评论
-
javadoc for Cyclic Barrier
2009-04-24 12:48 914java.util.concurrent.CyclicBarr ... -
Delayed interface and Delay Queue
2009-04-22 17:42 1060/** * A standard implementati ... -
Count Down Latch example code
2009-04-22 10:38 1165Key point : 1) 1 task is co ... -
3 ways to break dead lock
2009-04-21 17:30 7781) supply special resources. ... -
The usage of Lock and Condition
2009-04-18 12:31 1077//: concurrency/waxomatic2/WaxO ... -
Re entrantLock usage
2009-04-15 17:15 1331a thread can be really interru ... -
new interrupt in java5
2009-04-15 12:08 670In Java 5, Thread.interrupt() i ... -
interrupt
2009-04-15 10:57 8391) Each thread has a boolean in ... -
Executor Service Usage
2009-04-14 18:18 913ExecutorService exec = Executor ... -
Thread Local usage
2009-04-14 17:46 823ThreadLocal usage – from Javado ... -
Timer TimerTask usage
2009-04-14 12:03 729Timer typical usage new Tim ... -
wait, notify及线程通讯机制
2009-02-26 22:42 8541) wait(), notify() 方法被调用的时候,只要 ... -
Java Thread programming basical knowledge
2009-02-26 22:40 1097yield() : Give a hint to the th ... -
Count Down Latch explanation
2008-10-02 10:29 979Very important paragraph on how ... -
Scheduled Executor Service
2008-07-22 11:27 1133Executor can return Executor, E ... -
Executor usage
2008-07-22 11:04 927Executor is used to arrange thr ... -
Callable Usage
2008-07-22 10:24 954The important thing need to loo ...
相关推荐
- This section discusses the data structures used to implement semaphores, including `struct sem_array`, `struct sem`, `struct seminfo`, `struct semid64_ds`, `struct sem_queue`, `struct sembuf`, and ...
Intent Lock is the term used to mean placing a marker in a higher-level lock queue. The type of intent lock can also be called the multigranular lock mode. An intent lock indicates that SQL Server ...
Simplifying Usage of Strings' translate Method Recipe 1.10. Filtering a String for a Set of Characters Recipe 1.11. Checking Whether a String Is Text or Binary Recipe 1.12. Controlling Case ...
Performance and resource usage PEP 397: Python Launcher for Windows PEP 3151: Reworking the OS and IO exception hierarchy PEP 380: Syntax for Delegating to a Subgenerator PEP 409: Suppressing ...
longer released before a blocking operation during control method execution. This effectively makes the AML Interpreter single- threaded. The overhead of a semaphore per-method is eliminated. Fixed a...