The xv6 pstree project requires to add a new system call get…
The xv6 pstree project requires to add a new system call getprocs. In order to add the new system call getprocs, what C code changes need to be made to the following code fragment in xv6 syscall.c? extern int sys_chdir(void);extern int sys_close(void);…extern int sys_wait(void);extern int sys_write(void);extern int sys_uptime(void);static int (*syscalls[])(void) = {[SYS_fork] sys_fork,[SYS_exit] sys_exit,…[SYS_mknod] sys_mknod,[SYS_unlink] sys_unlink,[SYS_link] sys_link,[SYS_mkdir] sys_mkdir,[SYS_close] sys_clos,};voidsyscall(void){ int num; num = proc->tf->eax; if(num > 0 && num < NELEM(syscalls) && syscalls[num]) { proc->tf->eax = syscalls[num](); } else { cprintf(“%d %s: unknown sys call %d\n”, proc->pid, proc->name, num); proc->tf->eax = -1; }}
Read DetailsHypothetical: A recent poll tried to get a sense of voter tu…
Hypothetical: A recent poll tried to get a sense of voter turnout in the upcoming election. They ask “Are you or are you not interested in politics and did you vote in the last presidential election?” Based on this one question, the response was either a “Yes” or “No.” Based on this question, researchers concluded that even those not interested in politics will vote in the next election. Just based on this information, discuss and define the problem with this as a scientific/reliable poll (assume the number of people asked was an appropriate size). Focus on just one problem with the poll. Use and define all appropriate terms as discussed in this course. (Identify the error, define the error, apply it to the facts of the scenario). rubric proficient competent novice identify ONE relevant error 4 pts 2 pts 0 pts define the error 8 pts 4 pts 0 pts apply it to the facts of the scenario 6 3 0
Read DetailsDiscuss political and economic liberty in the US (as discuss…
Discuss political and economic liberty in the US (as discussed in this course). Rubric: (I cannot actually write on this rubric, this is for reference purposes). rubric proficient competent novice identify relevant terms 4 pts 2 pts 0 pts explain and describe in adequate detail 10 pts 5 pts 0 pts stays focused (avoids tangents) 4 pts 2 0
Read DetailsPick one part of the Constitution, and discuss/explain how i…
Pick one part of the Constitution, and discuss/explain how it contributed to the growth of federal power (as discussed in this course only). [Identify the part of the constitution, define what it means, discuss how it contributed to the growth of federal power.] Rubric: (I cannot actually write on this rubric, this is for reference purposes). rubric proficient competent novice identify relevant aspect 3 pts 1 pts 0 pts explain and describe in adequate detail 7 pts 3.5 pts 0 pts apply it to answer the question 5 pts 2.5 pts 0pts stays focused (avoids tangents) 3 pts 1.5 pt 0
Read Details