runnable

Computer code on screens

Let’s find out the difference between Thread and Runnable

Reading Time: 2 minutes Multithreading is a process where we are uses multiple threads (threads are the sub-processes, they are lightweight and occupy less space) to perform various tasks simultaneously. Multithreading is used to achieve multitasking. There are two ways by which we can create threads in SCALA By extending the Thread class By extending the Runnable interface Now there is a question that what is the difference between Continue Reading