Previous | Next --- Slide 74 of 86
Back to Lecture Thumbnails
Kaharjan

I think previous program is also applicable, only if we create 4 threads

kayvonf

@Kaharjan. Yes, to make full use of this CPU, the program on the previous slide would need to be modified to create four threads. If the program as written was unchanged, it would only define two threads of execution. Those two threads would run on 2 of the 4 cores above, and 50% of the four-core CPU would not be used by the program.