Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

CIS 620 Spring 2019 Project 2 Mar 6) The purpose of this project s to familiari yourself-.inf level thread package on PCinax. Yos nend to

image text in transcribed

CIS 620 Spring 2019 Project 2 Mar 6) The purpose of this project s to familiari" yourself-.inf level thread package on PCinax. Yos nend to sve tv and extract files from -cie620s/pub/xt.tar te Part I Pubir with the design and implemestation issues of a user tas he the tar conmand with the options svtz to uncompress The thread package which we tion unless it yields the control to other tread. Iirfin ide "in-runnin Linusefirst part of this assignment, you need to make the and aigproczask to unblock the o comple- threads preemptive. You cas use signsi and ualsh the clock interrupt occurs, the ieternupt hanleruegad thread to run. On FCLinus, you need ilgetptys" Mimr e pemide a clock interrupt every 002 second. When a runnabile is soe geeempeive. That is, a thread can run t SiEnal t Part II You also need to enhance the thread libeary with the ent.t. The e evem mechanism. The events are declared as variables loing thece functions have to be implemented void The event poinsed by e is initialized as NOT occuR void xthread.vait.ev(xthread.evestte) The function xthread.vait.ev() will place the calling pointed by e has not occurred. callig to be NOT OCCURRED xthread.int.ev (xthread.event.t e); when xthread.int.er() s invoked thuread on a qurue of threads if the event Orherwise, the calling thread comtinues to esecute and the event is set . void xthread.set ev(xthread.event t .a) set.ev() operation on the event poieted by e, ALL of the waiting processing-1 the event will te reset to MOOCCURRED. If there When a thread does a on are no queued processes, the event will be set as 0CCURRED Note that if the SIGALRM occurs during the execution of thread creaticcmpletion, event wait/set, etc.. the process table may lead to an inconsissent state (why? Give an example in your report). To solve this problem, you can use usec ualarn(0,0) ualarm(usec,0); returns. to disable the timer interrupt at the function entrance and restore it before the function CIS 620 Spring 2019 Project 2 Mar 6) The purpose of this project s to familiari" yourself-.inf level thread package on PCinax. Yos nend to sve tv and extract files from -cie620s/pub/xt.tar te Part I Pubir with the design and implemestation issues of a user tas he the tar conmand with the options svtz to uncompress The thread package which we tion unless it yields the control to other tread. Iirfin ide "in-runnin Linusefirst part of this assignment, you need to make the and aigproczask to unblock the o comple- threads preemptive. You cas use signsi and ualsh the clock interrupt occurs, the ieternupt hanleruegad thread to run. On FCLinus, you need ilgetptys" Mimr e pemide a clock interrupt every 002 second. When a runnabile is soe geeempeive. That is, a thread can run t SiEnal t Part II You also need to enhance the thread libeary with the ent.t. The e evem mechanism. The events are declared as variables loing thece functions have to be implemented void The event poinsed by e is initialized as NOT occuR void xthread.vait.ev(xthread.evestte) The function xthread.vait.ev() will place the calling pointed by e has not occurred. callig to be NOT OCCURRED xthread.int.ev (xthread.event.t e); when xthread.int.er() s invoked thuread on a qurue of threads if the event Orherwise, the calling thread comtinues to esecute and the event is set . void xthread.set ev(xthread.event t .a) set.ev() operation on the event poieted by e, ALL of the waiting processing-1 the event will te reset to MOOCCURRED. If there When a thread does a on are no queued processes, the event will be set as 0CCURRED Note that if the SIGALRM occurs during the execution of thread creaticcmpletion, event wait/set, etc.. the process table may lead to an inconsissent state (why? Give an example in your report). To solve this problem, you can use usec ualarn(0,0) ualarm(usec,0); returns. to disable the timer interrupt at the function entrance and restore it before the function

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

IBM Db2 11 1 Certification Guide Explore Techniques To Master Database Programming And Administration Tasks In IBM Db2

Authors: Mohankumar Saraswatipura ,Robert Collins

1st Edition

1788626915, 978-1788626910

More Books

Students also viewed these Databases questions