What is multithearding.?
In other words multiple works on a window at the same time is called multithreading
Multithreading is a process where multiple thread runs simultanously to accomplish a task in a program.
At a time how many threads are executed
Multi thread means a task is divided in to different threads and if one thread is stop working then control reach other thread and which thread is stop working resumed again
A programme is divided into many thread cause which processor access that thread approximate simultaneously that is multithreading.
Multi threading is create a program that perform multiple task simultaneously
Multithreading is actually defined as multiple path of execution where execution can take place simultaneously and threads are being executed by the methods and the execution can also be synchronised.
Otherwise, a thread goes into runnable state from running and allows the other thread for execution of a method..
Threads are used when we want to introduce multitasking and helps in reducing the idleness of cpu. But which thread is allowed to come into running state totally depends upon JVM..
Thread means a small part of program. Simultaneously no.of threads are executed on system that os is called multithreading
Multi threading refers to the concept where multiple threads run simultaneously in order to perform some tasks. If we consider multiprocessing, there multiple processes run simultaneously inorder to perform some task. In a single process multiple threads are being executed.
For example , If we consider browsing a web then there a thread is responsible for storing data in cookies , one thread responsible for downloading , one thread responsible for searching etc..
So simply saying, using more than one thread is called as multi threading.
A more general example,
When we go to a movie theatre, generally a person is there at the door, checking and cutting the tickets (thread 1). When we enter the hall, there is another person who shows the seats to us (thread 2).