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

How to insert contacts in zoho crm using php

Blog banner

Save Girl Child

Blog banner

Starvation

Blog banner

EVOLUTION OF MICROPROCESSOR

Blog banner

Rules and Regulations of Networking: "Standards and Protocols" - Part 2

Blog banner

Types of Hackers

Blog banner

Flipkart

Blog banner

LEMON PICKLE (NIMBU KA ACHAR)

Blog banner

operating system

Blog banner

DIGITAL ECONOMY

Blog banner

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

Blog banner

BUFFER OVERFLOW_142

Blog banner

Starvation and Deadlock.

Blog banner

Vulnerability Assessment

Blog banner

Functions Of Operating Systems

Blog banner

Gis in agriculture and farming

Blog banner

ODOO

Blog banner

Why Extreme Opinions Are Rising: Psychological Insights into Society’s Divides

Blog banner

Security Breaches in Stock market trading

Blog banner

Impacts of Data Breach On Companies Challenges and Prevention

Blog banner

Art and Culture of Rajasthan

Blog banner

INTRODUCTION TO C#

Blog banner

virtual machine

Blog banner

Social Media.

Blog banner

What is Password Cracking ? and it's Techniques.

Blog banner

Data Exfiltration

Blog banner

Modern Operating System

Blog banner

note taker app

Blog banner

Disk cache

Blog banner

A Happier Workplace Starts with Healthy Lunches by Meal Maharaj

Blog banner

Classification Algorithms (Decision trees, SVM, Logistic regreession)

Blog banner

Man VS Nature

Blog banner

Vulnerabilities in OnePlus Devices

Blog banner

(Input/Output) in os

Blog banner

File and File System Structure

Blog banner

Artificial Intelligence and I

Blog banner

Deadlock

Blog banner

In the world of Technology...

Blog banner

Digital Marketing

Blog banner

Constrained Management in IT

Blog banner

What is Brute Force Attack? How to defend against it?

Blog banner

Hash password! Is it really secured?

Blog banner