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

Concurrency and memory

Blog banner

From Procrastinator to Performer: How to Beat the Last-Minute Rush

Blog banner

Data Mining

Blog banner

Blog on health and fitness

Blog banner

Use case of K-means clustering

Blog banner

How to Run your First android App

Blog banner

Deadlocks in operating system

Blog banner

Linux -V Server Virtual Machine

Blog banner

Vulnerability Assessment

Blog banner

Does School Infrastructure Really Matter For Learning?

Blog banner

Admissions Open: Why This Is the Right Time to Choose the Best School for Your Child

Blog banner

Is Pursuing a Dance Career in India Worth it?

Blog banner

Buffering

Blog banner

Zero-Day Attack

Blog banner

What is metaverse?

Blog banner

E-Governance

Blog banner

Decoding the Weave — How to Identify Original Patola Art on a Fabric

Blog banner

Virtual Memory

Blog banner

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

Blog banner

Deadlock and Starvation

Blog banner

?Why Does My Breath Still Smell After Brushing?

Blog banner

In the world of Technology...

Blog banner

Annual Day Preparation for Toddlers: What Helps and What to Avoid

Blog banner

How HRMS, Task Management, and Team Chats Can Improve Workplace Productivity

Blog banner

MAHAKAL LOK UJJAIN

Blog banner

Best password managers: Reviews of the top products

Blog banner

Technical Challenges and Directions for Digital Forensics

Blog banner

Mango Raisin Chutney (sweet mango raisin spread)

Blog banner

Working with Sniffers for monitoring network communication

Blog banner

Wedding photographer

Blog banner

Indian Food

Blog banner

APACHE KAFKA

Blog banner

Critical success factors

Blog banner

India Digital Personal Data Protection Act, 2023

Blog banner

Teenagers of Today

Blog banner

Blockchain Security Technique

Blog banner

Memory management

Blog banner

A small world of Sockets

Blog banner

Operating system and overviews

Blog banner

38_Network Sniffing Techniques_SBC

Blog banner

A Survey of Anti-Forensic Techniques: Methods, Challenges, and Countermeasures

Blog banner

WAKE UP ITS FOOD o'CLOCK...!!!!!

Blog banner