G*O 发帖数: 706 | 1 是不是必须系统支持monitor或者semaphore的一种才能实现synchronization?
而且两者可以互相转化
操作系统/jvm不支持,只有软件就不能实现是么? |
G*O 发帖数: 706 | 2 thanks
不过是97年的,这些年java的synchronization没有变化么?
跟这个link比呢?
http://www.artima.com/insidejvm/ed2/threadsynch.html |
G*O 发帖数: 706 | 3 thanks
不过是97年的,这些年java的synchronization没有变化么?
跟这个link比呢?
http://www.artima.com/insidejvm/ed2/threadsynch.html |
c*****t 发帖数: 1879 | 4 huh? what are you talking about?
【在 G*O 的大作中提到】 : thanks : 不过是97年的,这些年java的synchronization没有变化么? : 跟这个link比呢? : http://www.artima.com/insidejvm/ed2/threadsynch.html
|
G*O 发帖数: 706 | 5 i think i find it.
http://www.artima.com/insidejvm/ed2/threadsynch3.html
【在 G*O 的大作中提到】 : 是不是必须系统支持monitor或者semaphore的一种才能实现synchronization? : 而且两者可以互相转化 : 操作系统/jvm不支持,只有软件就不能实现是么?
|
c*****t 发帖数: 1879 | 6 Java's monitor mechanism can be easily implemented on any platforms.
If you read up things on Monitor <-> Semaphore, Java's monitor
implementation is quite trivial using semaphores.
【在 G*O 的大作中提到】 : 是不是必须系统支持monitor或者semaphore的一种才能实现synchronization? : 而且两者可以互相转化 : 操作系统/jvm不支持,只有软件就不能实现是么?
|
G*O 发帖数: 706 | 7 monitor是通过jvm instruction的两个opcode实现的
如果不调用jvm的这两个指令
是不是就没有其他办法实现synchronization,理论上可以证明嘛?
【在 c*****t 的大作中提到】 : huh? what are you talking about?
|
c*****t 发帖数: 1879 | 8 Java's monitor mechanism can be easily implemented on any platforms.
If you read up things on Monitor <-> Semaphore, Java's monitor
implementation is quite trivial using semaphores.
【在 G*O 的大作中提到】 : 是不是必须系统支持monitor或者semaphore的一种才能实现synchronization? : 而且两者可以互相转化 : 操作系统/jvm不支持,只有软件就不能实现是么?
|