Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | |||||
3 | 4 | 5 | 6 | 7 | 8 | 9 |
10 | 11 | 12 | 13 | 14 | 15 | 16 |
17 | 18 | 19 | 20 | 21 | 22 | 23 |
24 | 25 | 26 | 27 | 28 | 29 | 30 |
Tags
- django
- ubuntu
- Book review
- UK
- hbase
- web
- Italy
- comic agile
- Malaysia
- Linux
- Java
- program
- history
- MySQL
- QT
- Programming
- erlang
- RFID
- Software Engineering
- programming_book
- agile
- Python
- Book
- psychology
- hadoop
- leadership
- Kuala Lumpur
- Spain
- management
- France
Archives
- Today
- Total
목록CountDownLatch (1)
volatile test with CountDownLatch
import java.util.Random; import java.util.concurrent.CountDownLatch; class TestVolatile2 { public static void main(String[] args) { try { final int N = 128; final int M = 8 * 1024 * 1024; final int TN = 4; { finalCountDownLatchcdl=new CountDownLatch(TN); finalBadAtomicLongal=new BadAtomicLong(); Threadt1=new Thread(new Runnable() { @Override public void run() { try { for ( int i = 0; i < 2 * TN ..
Programming/Java
2011. 4. 14. 05:16