SlideShare une entreprise Scribd logo
1  sur  8
linux training in Chandigarh
task_structure
The concept of a process is the foundation of any multiprogramming
operating system.A technique is usually defined as an example of a program in
execution; Therefore, if 16 users run vi at the same time, there are 16
different processes (although they can share the same executable code).
Each process has some unique information, which is stored in the process
descriptor of the task_struct type, which is the object of the task_struct.
Struct task _struct
{
volatile long state;
long counter;
long priority;
unsigned long signal;
unsigned long blocked;
unsigned long flags;
int errno;
int debugreg[8];
struct task_struct *next_task;
struct task_struct *prev_task;
struct mm_struct mm;
int pid, uid,gid;
struct fs_struct fs;
long utime, stime, cutime, cstime, start_time;
}
The state field of task_struct describes the process that is currently occurring.
The following are possible process states:
TASK_RUNNING :
The process is either executed on the CPU or waiting for execution.
TASK_INTERRUPTIBLE : The process pauses (sleeps) until certain conditions are
met. Initiating a hardware interrupt,acquit the system resource that is waiting
for the process or sending the signal is an example of a situation that can
wake up the process, restoring its state to TASK_RUNNING.
TASK_UNINTERRUPTIBLE: In this state, the process does not interrupt any hardware interrupts or
any signals.
TASK_STOPPED:
Process execution stopped: after receiving SIGSTOP, SIGTSTP, SIGTTIN, or SIGTTOU signal, the
process enters this state
TASK_ZOMBIE : Process execution has discontinue, but the parent process has not stopped.The
kernel can not abandon the data contained in the dead process task_struct because the original
process may require it.
The counter variable saves the time in Tick, which can still be run until a mandatory scheduling
operation is performed. The scheduler uses the counter value to select the next process.
Priority keeps the priority of the process.
Signal variable contains a bit mask for the signal received by the process.
Bolcked contains a bit mask for all signals that the process plans to process later.
Flags contain system status flags.
errono contains the error code if generated.
debugreg[8] assigns the debugger to that err code.
*next_task and *prev_
Work All processes are recorded in the double-linked list with the help of these two components.
mm_struct mm gather data for each process needed for memory management, mm_struct stores
this data.
Each process has its own process ID number, pid, user ID, uid, goup ID, gid.
File system-specific data is stored in fs_struct fs.
The utime and stime variables retain the time spent by the process in user mode and system mode.
cutime and cstime contain the sum of the corresponding times of all child processes, and start_time
contains the time to generate the current process.
Call us @ 9988741983
Website:http://cbitss.in
Linux training in Chandigarh

Contenu connexe

Plus de ashish34a

Plus de ashish34a (9)

Accounting courses in Chandigarh
Accounting courses in ChandigarhAccounting courses in Chandigarh
Accounting courses in Chandigarh
 
tally training in Chandigarh
tally training  in Chandigarhtally training  in Chandigarh
tally training in Chandigarh
 
Computer courses in Chandigarh
Computer courses in ChandigarhComputer courses in Chandigarh
Computer courses in Chandigarh
 
Accounting courses in Chandigarh
Accounting courses in ChandigarhAccounting courses in Chandigarh
Accounting courses in Chandigarh
 
Tally training in Chandigarh
Tally training in ChandigarhTally training in Chandigarh
Tally training in Chandigarh
 
Tally training in chandigarh
Tally training in chandigarhTally training in chandigarh
Tally training in chandigarh
 
Accounting courses in chandigarh
Accounting courses in chandigarhAccounting courses in chandigarh
Accounting courses in chandigarh
 
Computer courses in chandigarh
Computer courses in chandigarhComputer courses in chandigarh
Computer courses in chandigarh
 
tally training in Chandigarh
tally training in Chandigarhtally training in Chandigarh
tally training in Chandigarh
 

Dernier

Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdf
ciinovamais
 

Dernier (20)

Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The Basics
 
Unit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptxUnit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptx
 
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptxBasic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
 
SOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning PresentationSOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning Presentation
 
Micro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdfMicro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdf
 
Graduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - EnglishGraduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - English
 
Unit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxUnit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptx
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdf
 
ICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptxICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptx
 
How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17
 
Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)
 
Key note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfKey note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdf
 
Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024
 
How to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POSHow to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POS
 
How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17
 
Python Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docxPython Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docx
 
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
 
Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
Kodo Millet  PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...Kodo Millet  PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
 
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
 
Single or Multiple melodic lines structure
Single or Multiple melodic lines structureSingle or Multiple melodic lines structure
Single or Multiple melodic lines structure
 

Linux training in Chandigarh

  • 1. linux training in Chandigarh task_structure
  • 2. The concept of a process is the foundation of any multiprogramming operating system.A technique is usually defined as an example of a program in execution; Therefore, if 16 users run vi at the same time, there are 16 different processes (although they can share the same executable code). Each process has some unique information, which is stored in the process descriptor of the task_struct type, which is the object of the task_struct. Struct task _struct
  • 3. { volatile long state; long counter; long priority; unsigned long signal; unsigned long blocked; unsigned long flags; int errno; int debugreg[8]; struct task_struct *next_task; struct task_struct *prev_task; struct mm_struct mm; int pid, uid,gid; struct fs_struct fs; long utime, stime, cutime, cstime, start_time; }
  • 4. The state field of task_struct describes the process that is currently occurring. The following are possible process states: TASK_RUNNING : The process is either executed on the CPU or waiting for execution. TASK_INTERRUPTIBLE : The process pauses (sleeps) until certain conditions are met. Initiating a hardware interrupt,acquit the system resource that is waiting for the process or sending the signal is an example of a situation that can wake up the process, restoring its state to TASK_RUNNING.
  • 5. TASK_UNINTERRUPTIBLE: In this state, the process does not interrupt any hardware interrupts or any signals. TASK_STOPPED: Process execution stopped: after receiving SIGSTOP, SIGTSTP, SIGTTIN, or SIGTTOU signal, the process enters this state TASK_ZOMBIE : Process execution has discontinue, but the parent process has not stopped.The kernel can not abandon the data contained in the dead process task_struct because the original process may require it. The counter variable saves the time in Tick, which can still be run until a mandatory scheduling operation is performed. The scheduler uses the counter value to select the next process.
  • 6. Priority keeps the priority of the process. Signal variable contains a bit mask for the signal received by the process. Bolcked contains a bit mask for all signals that the process plans to process later. Flags contain system status flags. errono contains the error code if generated. debugreg[8] assigns the debugger to that err code. *next_task and *prev_ Work All processes are recorded in the double-linked list with the help of these two components. mm_struct mm gather data for each process needed for memory management, mm_struct stores this data. Each process has its own process ID number, pid, user ID, uid, goup ID, gid. File system-specific data is stored in fs_struct fs. The utime and stime variables retain the time spent by the process in user mode and system mode. cutime and cstime contain the sum of the corresponding times of all child processes, and start_time contains the time to generate the current process.
  • 7. Call us @ 9988741983 Website:http://cbitss.in