In Figure 12.43, we might be tempted to free the allocated memory block immediately after line 14

Question:

In Figure 12.43, we might be tempted to free the allocated memory block immediately after line 14 in the main thread, instead of freeing it in the peer thread. But this would be a bad idea. Why?

Figure 12.43

1 #include "csapp.h" 2 #define N 4 3 4 5 67 8 9 10 11 12 13 14 1567 18 19 20 21 22 23 24 25 26 27 28 void

Fantastic news! We've Found the answer you've been seeking!

Step by Step Answer:

Related Book For  book-img-for-question

Computer Systems A Programmers Perspective

ISBN: 9781292101767

3rd Global Edition

Authors: Randal E. Bryant, David R. O'Hallaron

Question Posted: