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

UniProcessor Scheduling

Blog banner

Brilliant WhatsApp Features Upcoming in 2023

Blog banner

Risk mitigation and management

Blog banner

VIRTUAL MACHINE

Blog banner

Guidelines for a Low sodium Diet.

Blog banner

Article on Fresh Book

Blog banner

What is Spyware? and examples of them.

Blog banner

Concept and definition of m-commerce

Blog banner

MUTUAL EXCLUSION

Blog banner

Virtual Memory

Blog banner

DATA WRANGLING

Blog banner

Hosting basics

Blog banner

SPEM

Blog banner

Data Structures

Blog banner

Service Operations Principles

Blog banner

Teamwork

Blog banner

Traditional Unix System

Blog banner

Scala - a programming tool

Blog banner

Have You Explored India Yet?

Blog banner

Save Environment

Blog banner

How return on investment is defined in IT services

Blog banner

The evolution of OS

Blog banner

FILE SHARING

Blog banner

HR Automation : Need of the hour

Blog banner

Article on IT development trends

Blog banner

CYBERBULLYING: Negative comments!

Blog banner

Digital Footprints An Emerging Dimension of Digital Inequality

Blog banner

Blog on health and fitness

Blog banner

Should you be using a mouthwash? Know from the experts

Blog banner

Diwali

Blog banner

Memory Management

Blog banner

Different types of scam Fraud

Blog banner

Operating System

Blog banner

Python as a tool for Data science task & project

Blog banner

Virtual Machine

Blog banner

SAVE TREES

Blog banner

Expert System In AI

Blog banner

Direct Memory Access

Blog banner

Blockchain uses and use cases

Blog banner

Solving Problems with AI: The Power of Search Algorithms

Blog banner

Deadlock in Operating System

Blog banner

Starting Android Activity Using Intent

Blog banner