View Code? Open in Web Editor
NEW
Repo to better understand java concurrency.
multithreading's Introduction
- Cave of Programming Youtube tutorial - Multi Threading
- A class extends Thread class and override the run method.
- A class implements Runnable interface and override run method.
- An anonymous class can able be used to implement the Runnable interface methods.
- Runnable instance should be passed as contrustor arguement in Thread class.
- Note: Do not invoke the "run" method, call the start method to invoke the run method in a new thread.
multithreading's People
Contributors
Watchers