wisemonkeys logo
FeedNotificationProfileManage Forms
FeedNotificationSearchSign in
wisemonkeys logo

Blogs

Process and Threading

profile
Shipra Maurya
Jul 11, 2023
1 Like
0 Discussions
137 Reads

In multiprocessing task, process is heavy weight task. It creates a child process same as the parent process when the parent process is busy. It has its own data and code to run the process this known as fork system call. 
Multithreading refers to the ability of an OS to support multiple, concurrent paths of execution within a single process. In multithreading task, threads light weight task.  In thread if we are creating thread of a process or dividing a process in multiple threads, then all threads will share same data and same code means there will not be over heading of data and code. But its own stack and register for every thread in the same process.
    Process                                                        Threads
1. System calls involved in process.                There is no system call involved
2. OS treats different process differently.        All user level threads treated as single task for OS
3. Different process has different copies        Threads share same copy of code and data
    of data, files, code.
4. Content switching is slower.                        Content switching is faster.
5. Blocking a process will not block                 Blocking a thread will block entire process.
    another process.
6. Independent.                                                Interdependent. 


Comments ()


Sign in

Read Next

Use case of K-means clustering

Blog banner

AI and Technology- Related Anxiety: Understanding the Psychological Impact of Living in an AI-Driven World

Blog banner

Marvel Cinematic Universe

Blog banner

SPAM

Blog banner

The Rise of Evil Twin Attacks: A New Kind Of Spoofing Cyberattack

Blog banner

Importance of Website

Blog banner

Digital Balance: Keeping Children Mindful in the Screen Age

Blog banner

Business-to-Business

Blog banner

Understanding Portion Control: How Much Food Do You Really Need?

Blog banner

INTERRUPTS

Blog banner

A Happier Workplace Starts with Healthy Lunches by Meal Maharaj

Blog banner

Virtual Machine

Blog banner

Process in OS

Blog banner

Improving the Accuracy of GPS and GNSS

Blog banner

Why Oak Tree Hotel Is Arcadia’s Hidden Gem?

Blog banner

MODERN OPERATING SYSTEMS

Blog banner

Data Science in Predictive Analytics: Transforming Business Decision-Making

Blog banner

Different types of scam Fraud

Blog banner

Mumbai Metro 3

Blog banner

Types of Big Data

Blog banner

Components of GIS

Blog banner

Memory Management

Blog banner

Real-Time Operating Systems (RTOS) Deep Explanation

Blog banner

Rapido

Blog banner

5 People who claimed to have Time Traveled

Blog banner

Direct Memory Access

Blog banner

Daycare Centres Help Children Transition into Structured Learning

Blog banner

MySQL

Blog banner

BIRYANI ! The history you never knew about

Blog banner

?Why Social and Emotional Skills Matter More Than ABCs in Early Years?

Blog banner

Drawing tips for a beginner

Blog banner

Why Every Preschooler Learns at Their Own Pace?

Blog banner

Swiggi

Blog banner

INTRODUCTION TO C#

Blog banner

american greatines

Blog banner

Evolution of operating systems

Blog banner

Veg Mix Pickle

Blog banner

Hubspot

Blog banner

The Role of Cyber Forensics in Criminology

Blog banner

Microsoft powerpoint presentation

Blog banner

How to Prepare Your Child for Their First Day of School?

Blog banner

"Can Lisp do Machine Learning?"

Blog banner