cs431 icon indicating copy to clipboard operation
cs431 copied to clipboard

[Question] Why is there a PhantomData in the Node only in MCS parking lock but not in others?

Open SansyHuman opened this issue 2 years ago • 2 comments

In the lock implementation which use linked list, there is a PhantomData in the Node only in MCS parking lock but not in others such as CLH or MCS lock. Why is that?

SansyHuman avatar Oct 12 '22 04:10 SansyHuman

I actually think we can delete it... but I'm not sure. @jeehoonkang do you possibly have an answer?

As a note, we won't ask about PhantomData in the exam since even though it is needed for concurrency in some cases, it is not the purpose of this course.

Lee-Janggun avatar Oct 14 '22 10:10 Lee-Janggun

  • I don't know too :) @tomtomjhj what do you think?
  • We'll figure out what's happening here and either fix the implementation or add comments.
  • As @Lee-Janggun said, it will not be asked in the midterm exam.

jeehoonkang avatar Oct 14 '22 14:10 jeehoonkang