Skip to content

Latest commit

 

History

History
executable file
·
21 lines (15 loc) · 440 Bytes

File metadata and controls

executable file
·
21 lines (15 loc) · 440 Bytes

####Concurrency

#####Method 1 Use Runnable interface: implements Runnable run(){} new Thread(nwe Runnable()).start();

Thread.yield():is a suggestiont to the thread scheduler.

Priority getPriority():read the priority. setPriority():change priority.

Thread.currentThread().setPriority();:call current thread.

#####Method 2 Use Subclass of Thread: xxx extends Thread new xxx().start();