What is multithreading:-
Multithreading is a process of executing multiple threads simultaneously.
It means multiple threads are running at the same time.
Like whenever we are opening an website then that time browser containing multiple threads(Internally it is containing multiple threads)like one thread is working for UI and one thread is for loading content and one for downloading the files.
So in that browser multiple threads are executing simultaneously.
Key Points:-
->Threads consumes less memory space and it gives the fast and efficient performance.
->Threads shares the common memory in between the threads.
->Threads are lightweight and consist of faster communication in between the threads
Examples:-
Banking Application:
-One user is checking balance
-Another user is withdrawing money
-Another is depositing money
All happen at the same timeTicket Booking System:
-Multiple users booking same seat
-Only one user should succeed
This is my first Post in this community I hope you all will understood this concept and ask if you have any questions regarding this topic.
Top comments (0)