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

Improving defences Proxy Device(defense in depth)

Blog banner

Hacking Mobile Platforms

Blog banner

The Five Steps of Data Science

Blog banner

Have You Explored India Yet?

Blog banner

Embracing the power of Modern Machine UNIX

Blog banner

Article on Fresh Book

Blog banner

Health and fitness in technology

Blog banner

History of ITIL

Blog banner

Different memory allocation strategies

Blog banner

Data Science in Healthcare: Predicting Diseases

Blog banner

Deadlock

Blog banner

Not anti-social, but pro-solitude

Blog banner

Solitary Play Activities for Preschoolers: Types and Benefits

Blog banner

"Life as a Part-time Student"

Blog banner

gis substation

Blog banner

Strengthening Active Directory Security

Blog banner

How To Implement Search Engine Marketing (Sem) Strategy Effectively

Blog banner

A buffer overflow

Blog banner

Artical on FreshBooks

Blog banner

'C', 'C++' and 'Java': Head-to-Head

Blog banner

Disk scheduling

Blog banner

What is Amazon?

Blog banner

Worms, viruses and Bots

Blog banner

Women empowerment

Blog banner

EFT

Blog banner

5 People who claimed to have Time Traveled

Blog banner

Severe landslides continue to cause concern in Joshimath, Uttarakhand

Blog banner

Data Visualization

Blog banner

The Peephole

Blog banner

The Importance of Financial Literacy for College Students

Blog banner

Sweet Mango Murabba

Blog banner

Method of Evaluating Information Security Level in an Organization

Blog banner

SQL Injection

Blog banner

Importance Of Education.

Blog banner

SECURITY VULNERABILITIES COUNTERMEASURES IN A SMART SHIP SYSTEM

Blog banner

Virtual Machine

Blog banner

Deadlocks in Operating System

Blog banner

Getting into Anime

Blog banner

AI & Data Science in Healthcare – Predicting diseases, medical imaging analysis

Blog banner

Esri India launches Policy Maps.

Blog banner

Direct Memory Access

Blog banner

DMZ: Your Secret Weapon for Data Security

Blog banner