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

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

Blog banner

indian premier league

Blog banner

Navigating the Digital Battlefield: Security Breaches and Effective Countermeasures

Blog banner

SPEM

Blog banner

Should you be using a mouthwash? Know from the experts

Blog banner

Memory heirachy (Operating system)

Blog banner

GIS Bharat Maps

Blog banner

HOW CAN SOCIAL MEDIA MAKE YOU HAPPIER?

Blog banner

A book review

Blog banner

Intrusion Detection System

Blog banner

Theads

Blog banner

Analysis of Digital Evidence In Identity Theft Investigations

Blog banner

WomenEmpowerment

Blog banner

Method of Evaluating Information Security Level in an Organization

Blog banner

I/O buffer and its techniques

Blog banner

Proof-of-Stake (PoS)

Blog banner

Modern operating system

Blog banner

Some web vulnerabilities

Blog banner

Spyware

Blog banner

K-means use cases

Blog banner

Threading

Blog banner

Revolutionary AI Tool: ChatGPT

Blog banner

Risk mitigation and management

Blog banner

Operating Systems

Blog banner

Monday. com App

Blog banner

What are Virtual Machines

Blog banner

INTRODUCTION TO C#

Blog banner

Top 5 Tech Innovations of 2018

Blog banner

OS Assignment 3

Blog banner

The Role of Cyber Forensics in Addressing Cyber security Challenges in Smart Cities

Blog banner

10 Unknown facts about India's Independence

Blog banner

Sweet Mango Murabba

Blog banner

Social Engineering Deceptions and Defenses

Blog banner

Cyber Security in Data Breaching

Blog banner

Python as a tool for data analysis

Blog banner

File management

Blog banner

Security in Operating Systems

Blog banner

Virus

Blog banner

Service Strategy In ITSM

Blog banner

Importance of Education

Blog banner

An Approach To Spyware Detection And Removal

Blog banner

Synchronization

Blog banner