Skip to content

Assignment 1 Part 1#1

Open
grahamj7 wants to merge 11 commits intomasterfrom
A1.1
Open

Assignment 1 Part 1#1
grahamj7 wants to merge 11 commits intomasterfrom
A1.1

Conversation

@grahamj7
Copy link
Copy Markdown
Owner

Here`s what I've got so far for assignment 1 part 1.

Count of running processes: 3 (processes with state == RUNNING, SLEEPING or RUNNABLE)
Count of all total processes: 64 (Processes with state == UNUSED)

output

$ getpcount
Process: init
State: SLEEPING
Process: sh
State: SLEEPING
Process: getpcount
State: RUNNING
Process: 
State UNUSED
...
Processes currently running: 3
pid 3 getpcount: trap 14 err 5 on cpu 1 eip 0xffffffff addr 0xffffffff--kill proc

Comment thread xv6-public/sysproc.c
Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Instead of adding this structure here, maybe put a function in proc.c to return the ptable

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants