Introduction to Threads

Thread is a lightweight process which has its own call stack. We use threads to achieve unit of work. Threads in java can be said as below 1) Instance of java.lang.Thread class Thread t1 = new Thread(); Thread t1 = new Thread(); Instance of Thread or object of Thread is similar to any other object […]

Share this article on