b-4 writeup

Upload: nagraj-tondchore

Post on 08-Jan-2016

12 views

Category:

Documents


0 download

DESCRIPTION

writeup

TRANSCRIPT

Group B Assignment 4 Title : C++ Program to assign nice values to processes and dynamically monitor them.

Assignment B4A. Aim/Problem StatementWrite a C++ Program to assign nice values to processes and dynamically monitor them.B. Index Termsnice, setpriority, process, getpriorityC. Mathematical ModelLet St be the system and it consists of St={{I},{o},{S},{F},{Fx}}I: Set of InputsO: Set of outputsS: Set of success outputsF: Set of failure conditionsFx: Set of processing functionsI={PId,NI}W={PRIO_PROCESS,PRIO_PGRP,PRIO_USER}F(g)= PRIORITY =0 if g WF(s)= PRIORITY +NI =-1 if s W or NI>19 or NI