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

ARTICLE ON WRIKE CORPORATION

Blog banner

OS Assignment 3

Blog banner

?How long does wisdom tooth pain last?

Blog banner

MODERN OPERATING SYSTEM

Blog banner

MOVEMBER

Blog banner

Multiple-Processor Scheduling in Operating System

Blog banner

Cache memory

Blog banner

Wiretapping

Blog banner

Building a Better You: Fitness Tips and Inspiration.

Blog banner

Game Theory in Blockchain

Blog banner

What is the point of living if we can die at any moment of our lives ?

Blog banner

I/O Buffering

Blog banner

Types of E-Commerce

Blog banner

Modern Operating System - Suren Kotian

Blog banner

Efficiency of SQL Injection Method in Preventing E-Mail Hacking

Blog banner

38_Network Sniffing Techniques_SBC

Blog banner

Flipkart

Blog banner

An Overview of Virtual Machines

Blog banner

Uniprocessor Scheduling

Blog banner

Deadlock

Blog banner

Blockchain in IoT Applications

Blog banner

Direct memory access (DMA)

Blog banner

Memory Management in Operating System

Blog banner

Direct Memory Access

Blog banner

COMMUNICATION

Blog banner

Direct memory access

Blog banner

Security Issues and Countermeasures

Blog banner

Microsoft powerpoint presentation

Blog banner

Deadlock and Starvation

Blog banner

Characteristics of Etherum

Blog banner

Virtual memory

Blog banner

Health and fitness

Blog banner

File Organization and Access

Blog banner

Sage

Blog banner

Dangers of Using Public WiFis

Blog banner

Beyond the Track: Why the Best Hotel in Arcadia, Florida, Completes Your IMSA Sebring Getaway

Blog banner

Predicting Student Performance with Data Science

Blog banner

Types Of scheduling

Blog banner

Review on Cyber Forensics and its Analysis Tools

Blog banner

Ethical Issues in Data Science and Role of Data Science in Smart Cities

Blog banner

Automating OSINT tasks for efficient Cyber Forensics Investigations

Blog banner

Patola Outfits for the Modern Wardrobe: Reviving Indian Handloom in Style

Blog banner