hw5
2022-04-09 21:44:08 4 举报
多线程电梯调度代码流程示意图
作者其他创作
大纲/内容
isEnd
VALID
NULL
isEmpty()
False
Queue! isEmpty
open()
wait
ENDINPUT
addWait()
synchronize(Queue)
setEnd()notifyAll()
True
initial Main
get a request
go()
Thread1:Input
Return
setEnd()add()remove()isEnd()isEmpty()
Thread2:ElevatorSystem
get targetElevator
Thread:Elevator
add requestto waitQueue
QueueisEmpty
<Shared obj>Queue
0 条评论
下一页