wisemonkeys logo
FeedNotificationProfileManage Forms
FeedNotificationSearchSign in
wisemonkeys logo

Blogs

What is thread and alse multithreading

profile
Khushi Kuvadiya
Aug 04, 2023
1 Like
0 Discussions
101 Reads

Q. What is Threads? And what you 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

Deadlock

Blog banner

A-B-C of Networking: Part-3 (Topology [Ring, Tree, Mesh])

Blog banner

Binary Search Tree (BST) in Data Structure

Blog banner

Fault Tolerance in an Operating System

Blog banner

URL vs Domain

Blog banner

An Approach To Spyware Detection And Removal

Blog banner

ITIL Version 3 and 4 differenciation?

Blog banner

Memory Management

Blog banner

Types of Viruses

Blog banner

LTE Technology

Blog banner

Windows Operating System

Blog banner

Processes: Process Description and Control.

Blog banner

Internet of Things and cyber security

Blog banner

All you need to know about Website Traffic

Blog banner

Spotify

Blog banner

Technological Advancement

Blog banner

Ghee vs. Coconut Oil vs. Mustard Oil: Which Cooking Fat Wins for Indian Food?

Blog banner

Harsh Rathod

Blog banner

Privacy in Social Media and Online Services

Blog banner

Process states

Blog banner

Latest Email Marketing Techniques

Blog banner

Operating system

Blog banner

MQTT (MQ Telemetry Transport) in Data Science

Blog banner

Memory management

Blog banner

Mumbai Metro 3

Blog banner

Jira Software

Blog banner

MACHINE LEARNING

Blog banner

Smart Homes | Zigbee Alliance

Blog banner

1.1 basic elements

Blog banner

A-B-C of Networking: Part-2 (Components)

Blog banner

Digital Footprints An Emerging Dimension of Digital Inequality

Blog banner

Atlantis - The Lost Island.........

Blog banner

Different types of scam frauds

Blog banner

Data is an asset and it is your responsibility!

Blog banner

Linux -V Server Virtual Machine

Blog banner

Image Steganography: Hiding Secrets in Plain Sight

Blog banner

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

Blog banner

Steps to create an Ubuntu EC2 Instance with GUI in AWS

Blog banner

Security in Cloud Computing Environment using cryptography - Rushabh Modi

Blog banner

Multicore and Multithreading

Blog banner

Direct memory access (DMA)

Blog banner

Why Businesses Are Investing More in Automation than Advertising?

Blog banner