feat: Add comprehensive examples from multithreading and hashing lectures
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
package lecture.multithreading.basics;
|
||||
|
||||
|
||||
public class ThreadVsRunnable {
|
||||
public static void main(String[] args) {
|
||||
|
||||
MyThread thread1 = new MyThread();
|
||||
thread1.start();
|
||||
|
||||
Thread thread2 = new Thread(new MyRunnable());
|
||||
thread2.start();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user