wisemonkeys logo
FeedNotificationProfileManage Forms
FeedNotificationSearchSign in
wisemonkeys logo

Blogs

What is thread and multithreading ?

profile
Sumit Alu
Aug 04, 2023
0 Likes
0 Discussions
114 Reads

Q. What is Threads? And what  you mean by Multi-Threading? 

ANS. Within a program, a Thread is a separate execution path. It is a lightweight process that the operating system can schedule and run concurrently with other threads. The operating system creates and manages threads, and they share the same memory and resources as the program that created them. This enables multiple threads to collaborate and work efficiently within a single program.A thread is a single sequence stream within a process. Threads are also called lightweight processes as they possess some of the properties of processes. Each thread belongs to exactly one process. In an operating system that supports multithreading, the process can consist of many threads.

Why Multi-Threading. 

A thread is also known as a lightweight process. The idea is to achieve parallelism by dividing a process into multiple threads. For example, in a browser, multiple tabs can be different threads. MS Word uses multiple threads: one thread to format the text, another thread to process inputs, etc. More advantages of multithreading are discussed below.Multithreading is a technique used in operating systems to improve the performance and responsiveness of computer systems. Multithreading allows multiple threads (i.e., lightweight processes) to share the same resources of a single process, such as the CPU, memory, and I/O devices


Comments ()


Sign in

Read Next

EFT

Blog banner

BEAUTY IS IN THE EYE OF THE BEHOLDER

Blog banner

Paralysis/Paralysis Stroke

Blog banner

What is Influencer Marketing and its Trends

Blog banner

10 Alien Encounters and Abduction Stories

Blog banner

Koinex is shutting down and here is how you can withdraw...

Blog banner

How College Events Build Real-world Skills You Can’t Learn From Textbooks

Blog banner

EVOLUTION OF MICROPROCESSOR

Blog banner

Denial-of-Service and Distributed Denial-of-Service Attack Techniques

Blog banner

Depression

Blog banner

What is thread and alse multithreading

Blog banner

Blockchain

Blog banner

26/11 The Black Day Of Mumbai

Blog banner

Different Types of Data

Blog banner

SmartData Collective: Data Science aur Analytics ki Duniya

Blog banner

Disk cache

Blog banner

Security Breaches in Stock market trading

Blog banner

Title: Modern Operating Systems: Powering the Digital Era

Blog banner

Juveniles, Internet and Computer Crime

Blog banner

Memory management

Blog banner

EVOLUTION OF THE MIRCOPROCESSOR

Blog banner

Music is life

Blog banner

Solving Problems with AI: The Power of Search Algorithms

Blog banner

Why Time Management Is the Secret to College Success (and How to Master It)

Blog banner

Python as a tool for data analysis

Blog banner

Big Data

Blog banner

E-learning in today's world

Blog banner

The Essential Guide to Dynamic Arrays vs. Linked Lists: Which to Use and When ?

Blog banner

De-Coding Love

Blog banner

Junk food vs healthy food

Blog banner

Disk scheduling

Blog banner

Buffer Overflow

Blog banner

Social media

Blog banner

What is metaverse?

Blog banner

Data Storytelling: Turning Analysis into Business Action

Blog banner

The Importance of Data Quality Management in Data Science

Blog banner

My Favorite Country

Blog banner

Apple

Blog banner

Flipkart

Blog banner

Virtual memory

Blog banner

Service Catalogue Management

Blog banner

Data-Driven Prediction of Virtual Item Prices in Online Games

Blog banner