wisemonkeys logo
FeedNotificationProfileManage Forms
FeedNotificationSearchSign in
wisemonkeys logo

Blogs

What is thread and multithreading ?

profile
Sumit Alu
Aug 04, 2023
0 Likes
0 Discussions
116 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

Wrike

Blog banner

Memory Management

Blog banner

Reconnaissance

Blog banner

Evolution of the Microprocesor

Blog banner

MAILFENCE

Blog banner

LIMITED EDITION

Blog banner

Indian Culture and Tradition

Blog banner

The evolution of OS

Blog banner

OS assignment 3

Blog banner

Deadlock Prevention

Blog banner

Men’s Mental Health: Breaking the Silence and Building Emotional Well-being

Blog banner

Personalized Movie Recommendations with Data Science

Blog banner

Way to make your meal healthier.

Blog banner

Have You Explored India Yet?

Blog banner

Indian Food

Blog banner

Interrupts

Blog banner

Key to success in Sports

Blog banner

How To Implement Search Engine Marketing (Sem) Strategy Effectively

Blog banner

Modern Operating System - Suren Kotian

Blog banner

What is service level Agreement?

Blog banner

Semaphores

Blog banner

Operating system evolution

Blog banner

Operation system

Blog banner

Solomon’s Castle: A Quirky Florida Attraction Worth Visiting from Arcadia

Blog banner

From Canoeing to Camping: The Perfect Nature Escape Near Arcadia

Blog banner

Charcoal, Lemon, and DIY Kits: Which “Viral” Dental Trends Are Actually Dangerous?

Blog banner

Why Is Freshly Cooked Food Better Than Processed Food for Everyday Health?

Blog banner

Race Conditions

Blog banner

Deadlock

Blog banner

Traveling

Blog banner

INTERNET

Blog banner

Cache Memory in Operating Systems

Blog banner

Water Resources are about to exhaust...

Blog banner

MODERN OPERATING SYSTEM

Blog banner

Data Science in Predictive Analytics: Transforming Business Decision-Making

Blog banner

The Benefits of Building and Construction Activities for Preschoolers

Blog banner

What is a Malware ?

Blog banner

Virtual memory

Blog banner

KPMG (Klynveld Peat Marwick Goerdeler)

Blog banner

Four Stalls Every Vegetarian Needs To Eat At Outside Vile Parle Station

Blog banner

Concurrency:Deadlock and Starvation

Blog banner

Hey Aryan here

Blog banner