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?
int id1 = get_this_thread_id();
... The code above ...
int id2 = get_this_thread_id();
@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.
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?