Oop Exp12
Oop Exp12
1) It doesn't block the user because threads are independent and you
can perform multiple operations at the same time.
Multitasking
Multitasking is a process of executing multiple tasks simultaneously.
We use multitasking to utilize the CPU. Multitasking can be achieved
in two ways:
t1.start();
t2.start();
}
}
OUTPUT: