so let's have a quiz and a programming exercise on this. here, we've given you the code that you just saw. now, what i want you do to is modify the code to time several different scenarios, okay? so try running a million threads, each incrementing one of a million elements, so every thread is uniquely incrementing a single element,
car hire uk code, a million threads atomically incrementing a million elements, a million threads incrementing a hundred elements, or a million threads atomically incrementing a hundred elements, or finally, 10 million threads atomically incrementing a hundred elements.
and for each of these choices, i'm going to want you to tell me 2 things. first of all, does it give the correct answer? put a check mark by those that give the correct answer. and second of all, rank them from fastest to slowest, so the fastest will be 1, the slowest will be 5.
Tidak ada komentar:
Posting Komentar