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

Harsh Rathod

Blog banner

Answer

Blog banner

Power of words

Blog banner

Swiggi

Blog banner

Exploring the Power of Encase Forensic Tools: Unraveling Digital Mysteries

Blog banner

Cyber Bullying - Neeta Vonkamuti

Blog banner

10 Things To Do On Valentine's Day If You're Single

Blog banner

Privacy-Enhancing Computation Techniques

Blog banner

Kernel in Operating System

Blog banner

Raid and levels of raid.

Blog banner

Should you be using a mouthwash? Know from the experts

Blog banner

The Impact of Tolerances and Wall Thickness on Pipeline Integrity

Blog banner

An Overview of Virtual Machines

Blog banner

How International Schools Build Global-Minded Students through Curriculum & Activities

Blog banner

Child labour

Blog banner

AI and Cyber Security

Blog banner

The House ??of Patola Designs: Traditional Weaves with a Modern Twist

Blog banner

Child labour

Blog banner

PROCESS CONTROL BLOCK IN OS

Blog banner

Starting Android Activity Using Intent

Blog banner

RAID

Blog banner

NodeJs

Blog banner

AutoML: The Future of Automated Data Science

Blog banner

Shoulders

Blog banner

Python as a tool for Data science task & project

Blog banner

KAHAWA TEA

Blog banner

K-means use cases

Blog banner

Constrained Management in IT

Blog banner

Self-love: Being the reason of your own smile

Blog banner

This too shall pass

Blog banner

GIS

Blog banner

Toothache at night? What does this mean, and how to cope with it?

Blog banner

Zero-Day Attack

Blog banner

Different types of scam Fraud

Blog banner

Junk food vs healthy food

Blog banner

Memory Management

Blog banner

DATA VAULT

Blog banner

Challenges and risks in service operations

Blog banner

Advantage of freedom

Blog banner

Deadlock in Operating System

Blog banner

CoWIN

Blog banner

Digital marketing spotlight “Dove’s Real Beauty Campaign”

Blog banner