All of lore.kernel.org
 help / color / mirror / Atom feed
* [Question] Quick Quiz B.13 help
@ 2017-02-13 13:41 Yubin Ruan
  2017-02-13 19:00 ` Paul E. McKenney
  0 siblings, 1 reply; 10+ messages in thread
From: Yubin Ruan @ 2017-02-13 13:41 UTC (permalink / raw)
  To: perfbook

Quick quiz B.13:
     Suppose that lines 3-5 for CPUs 1 and 2 in Table B.4 are in an 
interrupt handler, and that the CPU 2's line 9 is running at process 
level. What changes, if any, are required to enable the code to work 
correctly, in other words, to prevent the assertion from firing?

I can not come up with any practical material for this quiz, because I 
don't really know the implication of "in an interrupt handler", and 
"running in process level".

The answer hints that one would need to ensure that the load of "e" 
precedes that of "a" and hint the Linux kernel implementation 
"barrier()". But how is that exactly? I am going to invest some time 
into the Linux kernel implementation. But I would really appreciate some 
hints about this, as I don't have so much kernel development experience 
before.

regards,
Yubin Ruan

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2017-02-20  1:56 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-02-13 13:41 [Question] Quick Quiz B.13 help Yubin Ruan
2017-02-13 19:00 ` Paul E. McKenney
2017-02-14 10:53   ` Yubin Ruan
2017-02-14 15:36     ` Akira Yokosawa
2017-02-16 19:13       ` Paul E. McKenney
2017-02-16 22:47         ` Akira Yokosawa
2017-02-19 22:22           ` Paul E. McKenney
2017-02-19 23:47             ` Akira Yokosawa
2017-02-20  0:51               ` Paul E. McKenney
2017-02-20  1:56                 ` Akira Yokosawa

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.