Previous | Next --- Slide 62 of 64
Back to Lecture Thumbnails
x2020

Consider the following code:

int id1 = get_this_thread_id(); int id2 = get_this_thread_id();

Does it mean id1 != id2 because of the greedy policy?

x2020

int id1 = get_this_thread_id();

... The code above ...

int id2 = get_this_thread_id();

cmchiang

@x2020 did you mean which thread will execute those functions? I think greedy policy is more about who does the join operation.

Please log in to leave a comment.