在這個範例,使用wait/notify優化死鎖篇提到到過的Allocator,下面是原本的Allocator程式碼。當Transfer拿不到鎖的時候,會不斷的輪詢(poll)Allocator ...
確定! 回上一頁