sysproc.c
int 
sys_set(void){
  int n;// the number of tickets
  if (argint(0, &n) < 0) return -1;
  myproc()->ticket = n;
  myproc()->stride = 60/n;
  return n; 
}
//set the value of tickets of a process 

set the value of tickets of a process
set the value of tickets of a process
int 
sys_set(void){
  int n;
  if (argint(0, &n) < 0) return -1;
  myproc()->ticket = n;
  myproc()->stride = 60/n;
  return n; 
}
int sys_set ( void ) { int n ; if ( argint ( 0 , & n ) < 0 ) return -1 ; myproc ( ) -> ticket = n ; myproc ( ) -> stride = 60 / n ; return n ; }
set the value of tickets of a process
set the value of tickets of a process
// the number of tickets
