SlideShare a Scribd company logo
int FUNCTION(unsigned int process_id) { task_t processes[MAX_PROCESSES]; task_
process = &processes[process_id]; unsigned int pagesfreed = 0 ; (...) (...) (...) } Complete the
above function (in C) to deallocate page table memory (page replacement) used by a process in
termination (e.g. due to a segmentation or protection fault). (Structs for Reference): task: int:
process_id, pagecount pde_t: "pagetable } task_t pte: unsigned int: is_frame_in_use, ref, dirty,
op, frame, page } pte_t pde: pte_t ptepage; } pde_t Hint: You can travel the page directory and
find allocated pages (stored in ptepage) for freeing.

More Related Content

More from MichaelQEBMartinc

Information Technology Project Management Which of these types of p.docx
Information Technology Project Management    Which of these types of p.docxInformation Technology Project Management    Which of these types of p.docx
Information Technology Project Management Which of these types of p.docx
MichaelQEBMartinc
 
Indicate whether the following items can be classified on a statement.docx
Indicate whether the following items can be classified on a statement.docxIndicate whether the following items can be classified on a statement.docx
Indicate whether the following items can be classified on a statement.docx
MichaelQEBMartinc
 
Indigo Inc- uses a calendar year for financial reporting- The company (1).docx
Indigo Inc- uses a calendar year for financial reporting- The company (1).docxIndigo Inc- uses a calendar year for financial reporting- The company (1).docx
Indigo Inc- uses a calendar year for financial reporting- The company (1).docx
MichaelQEBMartinc
 
Income statement information for Martincz Tire Repair Corporation for.docx
Income statement information for Martincz Tire Repair Corporation for.docxIncome statement information for Martincz Tire Repair Corporation for.docx
Income statement information for Martincz Tire Repair Corporation for.docx
MichaelQEBMartinc
 
In your initial post- present an area or a country that currently has.docx
In your initial post- present an area or a country that currently has.docxIn your initial post- present an area or a country that currently has.docx
In your initial post- present an area or a country that currently has.docx
MichaelQEBMartinc
 
include calculations Problem 4- Consider the system x1-x13x2x2-x1x2 Is.docx
include calculations Problem 4- Consider the system x1-x13x2x2-x1x2 Is.docxinclude calculations Problem 4- Consider the system x1-x13x2x2-x1x2 Is.docx
include calculations Problem 4- Consider the system x1-x13x2x2-x1x2 Is.docx
MichaelQEBMartinc
 
In what areas will oxygen move into the blood- In the lungs None of th.docx
In what areas will oxygen move into the blood- In the lungs None of th.docxIn what areas will oxygen move into the blood- In the lungs None of th.docx
In what areas will oxygen move into the blood- In the lungs None of th.docx
MichaelQEBMartinc
 
In the Stevens Case- the Supreme Court determined that the defendant-.docx
In the Stevens Case- the Supreme Court determined that the defendant-.docxIn the Stevens Case- the Supreme Court determined that the defendant-.docx
In the Stevens Case- the Supreme Court determined that the defendant-.docx
MichaelQEBMartinc
 
In the last few years- many healthcare organizations have had challeng.docx
In the last few years- many healthcare organizations have had challeng.docxIn the last few years- many healthcare organizations have had challeng.docx
In the last few years- many healthcare organizations have had challeng.docx
MichaelQEBMartinc
 
In the plot below- the y-axis represented fractional saturation (Y) an.docx
In the plot below- the y-axis represented fractional saturation (Y) an.docxIn the plot below- the y-axis represented fractional saturation (Y) an.docx
In the plot below- the y-axis represented fractional saturation (Y) an.docx
MichaelQEBMartinc
 
In the histology image shown below- letter A represents the - Select-.docx
In the histology image shown below- letter A represents the - Select-.docxIn the histology image shown below- letter A represents the - Select-.docx
In the histology image shown below- letter A represents the - Select-.docx
MichaelQEBMartinc
 
In the image below- the path of light (black wiggly lines) from a star.docx
In the image below- the path of light (black wiggly lines) from a star.docxIn the image below- the path of light (black wiggly lines) from a star.docx
In the image below- the path of light (black wiggly lines) from a star.docx
MichaelQEBMartinc
 
In the Gas Diffusion Experiment with HCl and NH4OH- why did the white.docx
In the Gas Diffusion Experiment with HCl and NH4OH- why did the white.docxIn the Gas Diffusion Experiment with HCl and NH4OH- why did the white.docx
In the Gas Diffusion Experiment with HCl and NH4OH- why did the white.docx
MichaelQEBMartinc
 
In the economy of Talikastan in 2015- exports were $200- GDP was $2000.docx
In the economy of Talikastan in 2015- exports were $200- GDP was $2000.docxIn the economy of Talikastan in 2015- exports were $200- GDP was $2000.docx
In the economy of Talikastan in 2015- exports were $200- GDP was $2000.docx
MichaelQEBMartinc
 
In the circular flow of income and expenditures- A- Households provide.docx
In the circular flow of income and expenditures- A- Households provide.docxIn the circular flow of income and expenditures- A- Households provide.docx
In the circular flow of income and expenditures- A- Households provide.docx
MichaelQEBMartinc
 
in python Purpose The purpose of this assignment is to give you practi.docx
in python Purpose The purpose of this assignment is to give you practi.docxin python Purpose The purpose of this assignment is to give you practi.docx
in python Purpose The purpose of this assignment is to give you practi.docx
MichaelQEBMartinc
 
In its income statement for the year ended December 31-2025- Crane Inc.docx
In its income statement for the year ended December 31-2025- Crane Inc.docxIn its income statement for the year ended December 31-2025- Crane Inc.docx
In its income statement for the year ended December 31-2025- Crane Inc.docx
MichaelQEBMartinc
 
In Haskell- all lists have a head except for empty lists circular list.docx
In Haskell- all lists have a head except for empty lists circular list.docxIn Haskell- all lists have a head except for empty lists circular list.docx
In Haskell- all lists have a head except for empty lists circular list.docx
MichaelQEBMartinc
 
In Alricain elophant popalations- some fomale elophants grow lusks and.docx
In Alricain elophant popalations- some fomale elophants grow lusks and.docxIn Alricain elophant popalations- some fomale elophants grow lusks and.docx
In Alricain elophant popalations- some fomale elophants grow lusks and.docx
MichaelQEBMartinc
 
In a period of steadily rising prices (meaning the cost to purchase in.docx
In a period of steadily rising prices (meaning the cost to purchase in.docxIn a period of steadily rising prices (meaning the cost to purchase in.docx
In a period of steadily rising prices (meaning the cost to purchase in.docx
MichaelQEBMartinc
 

More from MichaelQEBMartinc (20)

Information Technology Project Management Which of these types of p.docx
Information Technology Project Management    Which of these types of p.docxInformation Technology Project Management    Which of these types of p.docx
Information Technology Project Management Which of these types of p.docx
 
Indicate whether the following items can be classified on a statement.docx
Indicate whether the following items can be classified on a statement.docxIndicate whether the following items can be classified on a statement.docx
Indicate whether the following items can be classified on a statement.docx
 
Indigo Inc- uses a calendar year for financial reporting- The company (1).docx
Indigo Inc- uses a calendar year for financial reporting- The company (1).docxIndigo Inc- uses a calendar year for financial reporting- The company (1).docx
Indigo Inc- uses a calendar year for financial reporting- The company (1).docx
 
Income statement information for Martincz Tire Repair Corporation for.docx
Income statement information for Martincz Tire Repair Corporation for.docxIncome statement information for Martincz Tire Repair Corporation for.docx
Income statement information for Martincz Tire Repair Corporation for.docx
 
In your initial post- present an area or a country that currently has.docx
In your initial post- present an area or a country that currently has.docxIn your initial post- present an area or a country that currently has.docx
In your initial post- present an area or a country that currently has.docx
 
include calculations Problem 4- Consider the system x1-x13x2x2-x1x2 Is.docx
include calculations Problem 4- Consider the system x1-x13x2x2-x1x2 Is.docxinclude calculations Problem 4- Consider the system x1-x13x2x2-x1x2 Is.docx
include calculations Problem 4- Consider the system x1-x13x2x2-x1x2 Is.docx
 
In what areas will oxygen move into the blood- In the lungs None of th.docx
In what areas will oxygen move into the blood- In the lungs None of th.docxIn what areas will oxygen move into the blood- In the lungs None of th.docx
In what areas will oxygen move into the blood- In the lungs None of th.docx
 
In the Stevens Case- the Supreme Court determined that the defendant-.docx
In the Stevens Case- the Supreme Court determined that the defendant-.docxIn the Stevens Case- the Supreme Court determined that the defendant-.docx
In the Stevens Case- the Supreme Court determined that the defendant-.docx
 
In the last few years- many healthcare organizations have had challeng.docx
In the last few years- many healthcare organizations have had challeng.docxIn the last few years- many healthcare organizations have had challeng.docx
In the last few years- many healthcare organizations have had challeng.docx
 
In the plot below- the y-axis represented fractional saturation (Y) an.docx
In the plot below- the y-axis represented fractional saturation (Y) an.docxIn the plot below- the y-axis represented fractional saturation (Y) an.docx
In the plot below- the y-axis represented fractional saturation (Y) an.docx
 
In the histology image shown below- letter A represents the - Select-.docx
In the histology image shown below- letter A represents the - Select-.docxIn the histology image shown below- letter A represents the - Select-.docx
In the histology image shown below- letter A represents the - Select-.docx
 
In the image below- the path of light (black wiggly lines) from a star.docx
In the image below- the path of light (black wiggly lines) from a star.docxIn the image below- the path of light (black wiggly lines) from a star.docx
In the image below- the path of light (black wiggly lines) from a star.docx
 
In the Gas Diffusion Experiment with HCl and NH4OH- why did the white.docx
In the Gas Diffusion Experiment with HCl and NH4OH- why did the white.docxIn the Gas Diffusion Experiment with HCl and NH4OH- why did the white.docx
In the Gas Diffusion Experiment with HCl and NH4OH- why did the white.docx
 
In the economy of Talikastan in 2015- exports were $200- GDP was $2000.docx
In the economy of Talikastan in 2015- exports were $200- GDP was $2000.docxIn the economy of Talikastan in 2015- exports were $200- GDP was $2000.docx
In the economy of Talikastan in 2015- exports were $200- GDP was $2000.docx
 
In the circular flow of income and expenditures- A- Households provide.docx
In the circular flow of income and expenditures- A- Households provide.docxIn the circular flow of income and expenditures- A- Households provide.docx
In the circular flow of income and expenditures- A- Households provide.docx
 
in python Purpose The purpose of this assignment is to give you practi.docx
in python Purpose The purpose of this assignment is to give you practi.docxin python Purpose The purpose of this assignment is to give you practi.docx
in python Purpose The purpose of this assignment is to give you practi.docx
 
In its income statement for the year ended December 31-2025- Crane Inc.docx
In its income statement for the year ended December 31-2025- Crane Inc.docxIn its income statement for the year ended December 31-2025- Crane Inc.docx
In its income statement for the year ended December 31-2025- Crane Inc.docx
 
In Haskell- all lists have a head except for empty lists circular list.docx
In Haskell- all lists have a head except for empty lists circular list.docxIn Haskell- all lists have a head except for empty lists circular list.docx
In Haskell- all lists have a head except for empty lists circular list.docx
 
In Alricain elophant popalations- some fomale elophants grow lusks and.docx
In Alricain elophant popalations- some fomale elophants grow lusks and.docxIn Alricain elophant popalations- some fomale elophants grow lusks and.docx
In Alricain elophant popalations- some fomale elophants grow lusks and.docx
 
In a period of steadily rising prices (meaning the cost to purchase in.docx
In a period of steadily rising prices (meaning the cost to purchase in.docxIn a period of steadily rising prices (meaning the cost to purchase in.docx
In a period of steadily rising prices (meaning the cost to purchase in.docx
 

Recently uploaded

aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
siemaillard
 
Sha'Carri Richardson Presentation 202345
Sha'Carri Richardson Presentation 202345Sha'Carri Richardson Presentation 202345
Sha'Carri Richardson Presentation 202345
beazzy04
 
BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...
BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...
BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...
Nguyen Thanh Tu Collection
 
Guidance_and_Counselling.pdf B.Ed. 4th Semester
Guidance_and_Counselling.pdf B.Ed. 4th SemesterGuidance_and_Counselling.pdf B.Ed. 4th Semester
Guidance_and_Counselling.pdf B.Ed. 4th Semester
Atul Kumar Singh
 
Phrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXX
Phrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXXPhrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXX
Phrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXX
MIRIAMSALINAS13
 
The basics of sentences session 5pptx.pptx
The basics of sentences session 5pptx.pptxThe basics of sentences session 5pptx.pptx
The basics of sentences session 5pptx.pptx
heathfieldcps1
 
678020731-Sumas-y-Restas-Para-Colorear.pdf
678020731-Sumas-y-Restas-Para-Colorear.pdf678020731-Sumas-y-Restas-Para-Colorear.pdf
678020731-Sumas-y-Restas-Para-Colorear.pdf
CarlosHernanMontoyab2
 
Polish students' mobility in the Czech Republic
Polish students' mobility in the Czech RepublicPolish students' mobility in the Czech Republic
Polish students' mobility in the Czech Republic
Anna Sz.
 
Francesca Gottschalk - How can education support child empowerment.pptx
Francesca Gottschalk - How can education support child empowerment.pptxFrancesca Gottschalk - How can education support child empowerment.pptx
Francesca Gottschalk - How can education support child empowerment.pptx
EduSkills OECD
 
The French Revolution Class 9 Study Material pdf free download
The French Revolution Class 9 Study Material pdf free downloadThe French Revolution Class 9 Study Material pdf free download
The French Revolution Class 9 Study Material pdf free download
Vivekanand Anglo Vedic Academy
 
Unit 2- Research Aptitude (UGC NET Paper I).pdf
Unit 2- Research Aptitude (UGC NET Paper I).pdfUnit 2- Research Aptitude (UGC NET Paper I).pdf
Unit 2- Research Aptitude (UGC NET Paper I).pdf
Thiyagu K
 
How to Make a Field invisible in Odoo 17
How to Make a Field invisible in Odoo 17How to Make a Field invisible in Odoo 17
How to Make a Field invisible in Odoo 17
Celine George
 
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
MysoreMuleSoftMeetup
 
Thesis Statement for students diagnonsed withADHD.ppt
Thesis Statement for students diagnonsed withADHD.pptThesis Statement for students diagnonsed withADHD.ppt
Thesis Statement for students diagnonsed withADHD.ppt
EverAndrsGuerraGuerr
 
Synthetic Fiber Construction in lab .pptx
Synthetic Fiber Construction in lab .pptxSynthetic Fiber Construction in lab .pptx
Synthetic Fiber Construction in lab .pptx
Pavel ( NSTU)
 
Chapter 3 - Islamic Banking Products and Services.pptx
Chapter 3 - Islamic Banking Products and Services.pptxChapter 3 - Islamic Banking Products and Services.pptx
Chapter 3 - Islamic Banking Products and Services.pptx
Mohd Adib Abd Muin, Senior Lecturer at Universiti Utara Malaysia
 
Instructions for Submissions thorugh G- Classroom.pptx
Instructions for Submissions thorugh G- Classroom.pptxInstructions for Submissions thorugh G- Classroom.pptx
Instructions for Submissions thorugh G- Classroom.pptx
Jheel Barad
 
Introduction to AI for Nonprofits with Tapp Network
Introduction to AI for Nonprofits with Tapp NetworkIntroduction to AI for Nonprofits with Tapp Network
Introduction to AI for Nonprofits with Tapp Network
TechSoup
 
Home assignment II on Spectroscopy 2024 Answers.pdf
Home assignment II on Spectroscopy 2024 Answers.pdfHome assignment II on Spectroscopy 2024 Answers.pdf
Home assignment II on Spectroscopy 2024 Answers.pdf
Tamralipta Mahavidyalaya
 
The approach at University of Liverpool.pptx
The approach at University of Liverpool.pptxThe approach at University of Liverpool.pptx
The approach at University of Liverpool.pptx
Jisc
 

Recently uploaded (20)

aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
 
Sha'Carri Richardson Presentation 202345
Sha'Carri Richardson Presentation 202345Sha'Carri Richardson Presentation 202345
Sha'Carri Richardson Presentation 202345
 
BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...
BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...
BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...
 
Guidance_and_Counselling.pdf B.Ed. 4th Semester
Guidance_and_Counselling.pdf B.Ed. 4th SemesterGuidance_and_Counselling.pdf B.Ed. 4th Semester
Guidance_and_Counselling.pdf B.Ed. 4th Semester
 
Phrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXX
Phrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXXPhrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXX
Phrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXX
 
The basics of sentences session 5pptx.pptx
The basics of sentences session 5pptx.pptxThe basics of sentences session 5pptx.pptx
The basics of sentences session 5pptx.pptx
 
678020731-Sumas-y-Restas-Para-Colorear.pdf
678020731-Sumas-y-Restas-Para-Colorear.pdf678020731-Sumas-y-Restas-Para-Colorear.pdf
678020731-Sumas-y-Restas-Para-Colorear.pdf
 
Polish students' mobility in the Czech Republic
Polish students' mobility in the Czech RepublicPolish students' mobility in the Czech Republic
Polish students' mobility in the Czech Republic
 
Francesca Gottschalk - How can education support child empowerment.pptx
Francesca Gottschalk - How can education support child empowerment.pptxFrancesca Gottschalk - How can education support child empowerment.pptx
Francesca Gottschalk - How can education support child empowerment.pptx
 
The French Revolution Class 9 Study Material pdf free download
The French Revolution Class 9 Study Material pdf free downloadThe French Revolution Class 9 Study Material pdf free download
The French Revolution Class 9 Study Material pdf free download
 
Unit 2- Research Aptitude (UGC NET Paper I).pdf
Unit 2- Research Aptitude (UGC NET Paper I).pdfUnit 2- Research Aptitude (UGC NET Paper I).pdf
Unit 2- Research Aptitude (UGC NET Paper I).pdf
 
How to Make a Field invisible in Odoo 17
How to Make a Field invisible in Odoo 17How to Make a Field invisible in Odoo 17
How to Make a Field invisible in Odoo 17
 
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
 
Thesis Statement for students diagnonsed withADHD.ppt
Thesis Statement for students diagnonsed withADHD.pptThesis Statement for students diagnonsed withADHD.ppt
Thesis Statement for students diagnonsed withADHD.ppt
 
Synthetic Fiber Construction in lab .pptx
Synthetic Fiber Construction in lab .pptxSynthetic Fiber Construction in lab .pptx
Synthetic Fiber Construction in lab .pptx
 
Chapter 3 - Islamic Banking Products and Services.pptx
Chapter 3 - Islamic Banking Products and Services.pptxChapter 3 - Islamic Banking Products and Services.pptx
Chapter 3 - Islamic Banking Products and Services.pptx
 
Instructions for Submissions thorugh G- Classroom.pptx
Instructions for Submissions thorugh G- Classroom.pptxInstructions for Submissions thorugh G- Classroom.pptx
Instructions for Submissions thorugh G- Classroom.pptx
 
Introduction to AI for Nonprofits with Tapp Network
Introduction to AI for Nonprofits with Tapp NetworkIntroduction to AI for Nonprofits with Tapp Network
Introduction to AI for Nonprofits with Tapp Network
 
Home assignment II on Spectroscopy 2024 Answers.pdf
Home assignment II on Spectroscopy 2024 Answers.pdfHome assignment II on Spectroscopy 2024 Answers.pdf
Home assignment II on Spectroscopy 2024 Answers.pdf
 
The approach at University of Liverpool.pptx
The approach at University of Liverpool.pptxThe approach at University of Liverpool.pptx
The approach at University of Liverpool.pptx
 

int FUNCTION(unsigned int process_id) -{ task_t processes-MAX_PROCESSE.docx

  • 1. int FUNCTION(unsigned int process_id) { task_t processes[MAX_PROCESSES]; task_ process = &processes[process_id]; unsigned int pagesfreed = 0 ; (...) (...) (...) } Complete the above function (in C) to deallocate page table memory (page replacement) used by a process in termination (e.g. due to a segmentation or protection fault). (Structs for Reference): task: int: process_id, pagecount pde_t: "pagetable } task_t pte: unsigned int: is_frame_in_use, ref, dirty, op, frame, page } pte_t pde: pte_t ptepage; } pde_t Hint: You can travel the page directory and find allocated pages (stored in ptepage) for freeing.