ADD Thread sleep
This commit is contained in:
@@ -25,4 +25,7 @@ mbed test -m DISCO_H747I -t GCC_ARM -n advdembsof_library-tests-sensors-hdc1000
|
||||
|
||||
# Some questions
|
||||
## If you print CPU statistics at the end of every major cycle (in the super-loop), what CPU usage do you observe? How can you explain the observed CPU uptime?
|
||||
We observe a 100% usage because on each CPU cycle it compare if time is done.
|
||||
We observe a 100% usage because on each CPU cycle it compare if time is done.
|
||||
|
||||
## If you run the program after the change from busy wait to sleep calls, what CPU usage do you observe? How can you explain the observed CPU uptime?
|
||||
We can observe only a usage of 75% because the CPU is more on Idle with Thread sleep.
|
||||
Reference in New Issue
Block a user