SynchronousQueue中非公平模式使用的是TransferStack,它与TransferQueue类似
只是TransferQueue是LILO模式,TransferStack是LIFO模式
same_mode模式,入队
put
take
fulfill_mode模式,pop出队
put
take
SynchronousQueue中非公平模式使用的是TransferStack,它与TransferQueue类似
只是TransferQueue是LILO模式,TransferStack是LIFO模式
put
take
put
take
转载于:https://www.cnblogs.com/toUpdating/p/10116070.html