Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: cpu result #15

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Zaynex
Copy link

@Zaynex Zaynex commented Sep 4, 2020

Hi, thanks for your teaching materials.
I ran the program, and the result here:

➜  cpu-intro git:(master) ✗ ./process-run.py -l 3:0 -L 5 -c -p
Time    PID: 0       CPU       IOs
  1     RUN:io         1
  2    WAITING                   1
  3    WAITING                   1
  4    WAITING                   1
  5    WAITING                   1
  6*    RUN:io         1
  7    WAITING                   1
  8    WAITING                   1
  9    WAITING                   1
 10    WAITING                   1
 11*    RUN:io         1
 12    WAITING                   1
 13    WAITING                   1
 14    WAITING                   1
 15    WAITING                   1
 16*      DONE         1

Stats: Total Time 16
Stats: CPU Busy 4 (25.00%)
Stats: IO Busy  12 (75.00%)

@Inuyasha-Monster
Copy link

The same with me ...

[root@node2 cpu-intro]# ./process-run.py -l 3:0 -L 5 -c -p
Time    PID: 0       CPU       IOs
  1     RUN:io         1
  2    WAITING                   1
  3    WAITING                   1
  4    WAITING                   1
  5    WAITING                   1
  6*    RUN:io         1
  7    WAITING                   1
  8    WAITING                   1
  9    WAITING                   1
 10    WAITING                   1
 11*    RUN:io         1
 12    WAITING                   1
 13    WAITING                   1
 14    WAITING                   1
 15    WAITING                   1
 16*      DONE         1

Stats: Total Time 16
Stats: CPU Busy 4 (25.00%)
Stats: IO Busy  12 (75.00%)

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