Have gone through this entire course it is amazing, Learnt So so Much, recommended it to everyone
@keyboard_toucher Жыл бұрын
The way I see it, the most obvious and biggest problem with "Strategy 2" (55:29) is missed. It is that the programmer wouldn't be able to transfer ownership (i.e. deallocation responsibility) of objects between threads. The immediate problem with allocating on one thread and freeing on another, as one student suggested, would not be wastage of memory but rather heap corruption due to races in the heap management code. A mutex would have to be used to avoid that, which invalidates the "no locking"/"no synchronization" bullet points. This deficiency is later resolved in "Strategy 3".
@PetrSkovron6 ай бұрын
34:00 -- How can we reuse the memory used by the subproblems? Aren't they running in parallel?
@pschneider19682 жыл бұрын
Hmm, I did not understand anything from slide 19... 🤔 Not enough explanations/illustrations there (for me). Anyone care to explain?