Skip to content

Instantly share code, notes, and snippets.

View ayushshukla012's full-sized avatar

Ayush Shukla ayushshukla012

View GitHub Profile
@ayushshukla012
ayushshukla012 / .java
Last active May 2, 2025 11:28
ThreadClass
class OrderProcessor extends Thread {
public void run() {
System.out.println("Processing order in thread: " + Thread.currentThread().getName());
}
}
public class Main {
public static void main(String[] args) {
OrderProcessor t1 = new OrderProcessor();
t1.start();