student-distrib/system_call.c
int32_t switch_running_task(uint32_t task_num) {
	uint32_t new_task_num = find_bottom_task(task_num);
	
	if(new_task_num == -1) {
		return -1;
	} else {
		tasks_running = new_task_num;
		return 0;
	}
}
/* switch_running_task()
 * Input: shell to switch to the bottom task of
 * Return: 0 on success, -1 on failure
 * Effect: Changes the tasks_running var to the bottom task of the shell specified
 */
switch_running_task()
Input: shell to switch to the bottom task of
Return: 0 on success, -1 on failure
Effect: Changes the tasks_running var to the bottom task of the shell specified
switch_running_task () Input : shell to switch to the bottom task of Return : 0 on success - 1 on failure Effect : Changes the tasks_running var to the bottom task of the shell specified
int32_t switch_running_task(uint32_t task_num) {
	uint32_t new_task_num = find_bottom_task(task_num);
	if(new_task_num == -1) {
		return -1;
	} else {
		tasks_running = new_task_num;
		return 0;
	}
}
int32_t switch_running_task ( uint32_t task_num ) { uint32_t new_task_num = find_bottom_task ( task_num ) ; if ( new_task_num == -1 ) { return -1 ; } else { tasks_running = new_task_num ; return 0 ; } }
switch_running_task()
 Input: shell to switch to the bottom task of
 Return: 0 on success, -1 on failure
 Effect: Changes the tasks_running var to the bottom task of the shell specified
switch_running_task () Input : shell to switch to the bottom task of Return : 0 on success - 1 on failure Effect : Changes the tasks_running var to the bottom task of the shell specified