Skip to content

Commit

Permalink
check for yes
Browse files Browse the repository at this point in the history
  • Loading branch information
kaiwan committed Feb 14, 2024
1 parent fea352a commit 3e9fff4
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions ch10/concurrent_exercise/exercise_cpu
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,8 @@ which taskset >/dev/null || {
echo "Pl first install the taskset utility"
exit 1
}
which yes >/dev/null || {
echo "Pl first install the 'yes' utility"
exit 1
}
taskset -c $1 yes > /dev/null

0 comments on commit 3e9fff4

Please sign in to comment.