wisemonkeys logo
FeedNotificationProfileManage Forms
FeedNotificationSearchSign in
wisemonkeys logo

Blogs

What is thread and multithreading ?

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

Be you

Blog banner

MPL and how its effects?

Blog banner

GIS

Blog banner

Data Science & AI

Blog banner

Ola

Blog banner

WORKFRONT SOFTWARE

Blog banner

Evolution of Operating system

Blog banner

INTERNET SECURITY

Blog banner

MUTUAL EXCLUSION

Blog banner

BrainGate Technology

Blog banner

Understanding - Proof of Work!

Blog banner

Fudgy Tahini Date Chocolate Bars

Blog banner

Volatile Memory & Non-Volatile Memory Explained

Blog banner

Smart Homes | Zigbee Alliance

Blog banner

Service Transition Process in ITSM

Blog banner

I/O Buffering

Blog banner

SQL Injection

Blog banner

This Windows 11 encryption bug may cause data damage

Blog banner

Top 3 Places To Stay In Vienna

Blog banner

The khan mehtab transforming the modular switches company

Blog banner

Traditional Unix System

Blog banner

The Impact of Cyber Forensics on Corporate Governance and Compliance

Blog banner

Therapy Myths That Need to End in 2025

Blog banner

MY FIRST BLOG?

Blog banner

Geographic Information Systems(By aditi Unnikrishnan)

Blog banner

Technical Challenges and Directions for Digital Forensics

Blog banner

What's Better : Supervised or Unsupervised Learning

Blog banner

Why Consistency in Eating Habits Matters and How Meal Maharaj Makes It Easy

Blog banner

Wedding photographer

Blog banner

Decoding the Weave — How to Identify Original Patola Art on a Fabric

Blog banner

Precision-Recall in Data Science

Blog banner

Impacts of Data Breach On Companies Challenges and Prevention

Blog banner

GIS Mapping

Blog banner

Types of Hackers

Blog banner

Zomato (Income Sources)

Blog banner

What is Virtual Memory

Blog banner

Caching windows

Blog banner

GIS Applications: How Different Industries are Leveraging Geospatial Data

Blog banner

Linux Memory Management

Blog banner

Social Engineering Deceptions and Defenses

Blog banner

The New Classic: Indo Western Patola Outfits for Today’s Woman

Blog banner

Interrupts in operating system.

Blog banner