Rubrik | Phone
Anonymous User
4314

Design a class, which contains two methods, schedule() and waitUntilComplete(), when user wanna excecute a work, will call schedule() (schedule() method will returns immediately), The function of waitUntilComplete is to wait for all the existing work to be executed, and then return. Because is muti-thread, need to consider thread safe.

Comments (9)