<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content="text/html; charset=utf-8" http-equiv=Content-Type><!-- flashmail style begin -->
<STYLE type=text/css>
body {border-width:0;margin:0}
img {border:0;margin:0;padding:0}
</STYLE>
<BASE target=_blank><!-- flashmail style end -->
<META name=GENERATOR content="MSHTML 11.00.10586.545"></HEAD>
<BODY
style="BORDER-LEFT-WIDTH: 0px; FONT-SIZE: 10.5pt; FONT-FAMILY: times new roman; BORDER-RIGHT-WIDTH: 0px; BORDER-BOTTOM-WIDTH: 0px; COLOR: #000000; MARGIN: 12px; LINE-HEIGHT: 1.5; BORDER-TOP-WIDTH: 0px"
marginheight="0" marginwidth="0">
<DIV>Thank you very much for your help! I am interested in that implementation.
I will appreciate that if you can share it to me.</DIV>
<DIV><STATIONERY>
<DIV>
<STYLE type=text/css>
body {
font-size:12.1pt; font-family:simsun,serif;
}
</STYLE>
<!-- flashmail style begin -->
<STYLE type=text/css> <!--@import url(D:\网易闪电邮\\data\scrollbar.css); -->
blockquote {
margin-top:0; margin-bottom:0; margin-left:2em;
}
body {
padding:0; margin:0;
}
</STYLE>
<BASE target=_blank><!-- flashmail style end -->
<META name=GENERATOR content="MSHTML 11.00.9600.17207"><STATIONERY>
<DIV>
<STYLE type=text/css>
body {
font-size:12.1pt; font-family:simsun,serif;
}
</STYLE>
<!-- flashmail style begin -->
<STYLE type=text/css> <!--@import url(D:\网易闪电邮\\data\scrollbar.css); -->
blockquote {
margin-top:0; margin-bottom:0; margin-left:2em;
}
body {
padding:0; margin:0;
}
</STYLE>
<BASE target=_blank><!-- flashmail style end -->
<META name=GENERATOR content="MSHTML 11.00.9600.16521"><STATIONERY>
<DIV>
<STYLE type=text/css>
body {
font-size:12.1pt; font-family:simsun,serif;
}
</STYLE>
<!-- flashmail style begin -->
<STYLE type=text/css> <!--@import url(D:\网易闪电邮\\data\scrollbar.css); -->
blockquote {
margin-top:0; margin-bottom:0; margin-left:2em;
}
body {
padding:0; margin:0;
}
</STYLE>
<BASE target=_blank><!-- flashmail style end -->
<META name=GENERATOR content="MSHTML 11.00.9600.16521"><STATIONERY>
<DIV>
<STYLE type=text/css>
body {
font-size:12.1pt; font-family:simsun,serif;
}
</STYLE>
<!-- flashmail style begin -->
<STYLE type=text/css> <!--@import url(D:\网易闪电邮\\data\scrollbar.css); -->
blockquote {
margin-top:0; margin-bottom:0; margin-left:2em;
}
body {
padding:0; margin:0;
}
</STYLE>
<BASE target=_blank><!-- flashmail style end -->
<META name=GENERATOR content="MSHTML 11.00.9600.16518"><STATIONERY>
<DIV>
<DIV
style="WHITE-SPACE: normal; WORD-SPACING: 0px; TEXT-TRANSFORM: none; COLOR: rgb(0,0,17); FONT: 13px Tahoma; LETTER-SPACING: normal; TEXT-INDENT: 2em; -webkit-text-stroke-width: 0px"
align=right><FONT face="Times New Roman">Best Wishes!</FONT></DIV>
<DIV
style="WHITE-SPACE: normal; WORD-SPACING: 0px; TEXT-TRANSFORM: none; COLOR: rgb(0,0,17); FONT: 13px Tahoma; LETTER-SPACING: normal; TEXT-INDENT: 2em; -webkit-text-stroke-width: 0px"
align=right><FONT face=宋体><I><BR></I></FONT></DIV>
<DIV
style="WHITE-SPACE: normal; WORD-SPACING: 0px; TEXT-TRANSFORM: none; COLOR: rgb(0,0,17); FONT: 13px Tahoma; LETTER-SPACING: normal; TEXT-INDENT: 2em; -webkit-text-stroke-width: 0px"
align=right><FONT face=宋体><I><BR></I></FONT></DIV>
<DIV
style="WHITE-SPACE: normal; WORD-SPACING: 0px; TEXT-TRANSFORM: none; COLOR: rgb(0,0,17); FONT: 13px Tahoma; LETTER-SPACING: normal; TEXT-INDENT: 2em; -webkit-text-stroke-width: 0px"
align=right><FONT face="Times New Roman"><I>You Sincerely!</I></FONT></DIV>
<DIV
style="WHITE-SPACE: normal; WORD-SPACING: 0px; TEXT-TRANSFORM: none; COLOR: rgb(0,0,17); FONT: 13px Tahoma; LETTER-SPACING: normal; TEXT-INDENT: 2em; -webkit-text-stroke-width: 0px"
align=right><FONT face="Times New Roman"><B>SHI Junjie</B></FONT></DIV>
<DIV
style="WHITE-SPACE: normal; WORD-SPACING: 0px; TEXT-TRANSFORM: none; COLOR: rgb(0,0,17); FONT: 13px Tahoma; LETTER-SPACING: normal; TEXT-INDENT: 2em; -webkit-text-stroke-width: 0px"
align=right><FONT size=4 face="Times New Roman">E-mail: </FONT><A
href="https://webmail.fh-luebeck.de/owa/redir.aspx?C=Xgp-vkQROk6mgWxiQ4bYVUZ6z-DwANEIpsFAkAKd4N8a3Gy4Smj6k3TEqwRs_cWuZR6g1t7b6ls.&URL=https%3a%2f%2fwebmail.fh-luebeck.de%2fowa%2fredir.aspx%3fC%3dyYP8G_1eHECF-XBbzY97vl_eezmS8NAIVb3vZBUDKq4-1mnsRKNzn7OtN1-xgQCBggKxMw1J0W8.%26URL%3dmailto%253ashijunjie92%2540gmail.com"
target=_blank><FONT face=宋体><FONT size=4
face="Times New Roman">shijunjie92@gmail.com</FONT></FONT></A></DIV>
<DIV
style="WHITE-SPACE: normal; WORD-SPACING: 0px; TEXT-TRANSFORM: none; COLOR: rgb(0,0,17); FONT: 13px Tahoma; LETTER-SPACING: normal; TEXT-INDENT: 2em; -webkit-text-stroke-width: 0px"
align=right><FONT
face="Times New Roman"></FONT> </DIV></DIV></STATIONERY></DIV></STATIONERY></DIV></STATIONERY></DIV></STATIONERY></DIV></STATIONERY></DIV>
<DIV> </DIV>
<DIV style="FONT-SIZE: 10pt; FONT-FAMILY: Verdana; COLOR: #c0c0c0"
align=left>2016-08-30
<HR id=SignNameHR
style="BORDER-TOP: #c0c0c0 1px solid; HEIGHT: 1px; BORDER-RIGHT: 0px; WIDTH: 122px; BORDER-BOTTOM: 0px; BORDER-LEFT: 0px"
align=left>
<SPAN id=_FlashSignName>shijunjie92</SPAN> </DIV>
<HR
style="BORDER-TOP: #c0c0c0 1px solid; HEIGHT: 1px; BORDER-RIGHT: 0px; BORDER-BOTTOM: 0px; BORDER-LEFT: 0px">
<BLOCKQUOTE id=ntes-flashmail-quote
style="FONT-SIZE: 10pt; FONT-FAMILY: Verdana; PADDING-LEFT: 0px; MARGIN-LEFT: 0px">
<DIV><STRONG>发件人:</STRONG>Björn Brandenburg <bbb@mpi-sws.org></DIV>
<DIV><STRONG>发送时间:</STRONG>2016-08-30 19:13</DIV>
<DIV><STRONG>主题:</STRONG>Re: [LITMUS^RT] Synchronization of resources</DIV>
<DIV><STRONG>收件人:</STRONG>"litmus-dev"<litmus-dev@lists.litmus-rt.org></DIV>
<DIV><STRONG>抄送:</STRONG></DIV>
<DIV> </DIV>
<DIV><BR>
<DIV>
<BLOCKQUOTE type="cite">
<DIV>On 30 Aug 2016, at 20:00, shijunjie92 <<A
href="mailto:shijunjie92@gmail.com">shijunjie92@gmail.com</A>>
wrote:</DIV><BR class=Apple-interchange-newline>
<DIV>
<DIV
style="FONT-SIZE: 14px; FONT-FAMILY: 'times new roman'; WHITE-SPACE: normal; WORD-SPACING: 0px; TEXT-TRANSFORM: none; FONT-WEIGHT: normal; FONT-STYLE: normal; LETTER-SPACING: normal; TEXT-INDENT: 0px; font-variant-caps: normal; -webkit-text-stroke-width: 0px">The
reason why I ask the last question is that I am trying to implement the
'help mechanism' of MrsP.</DIV></DIV></BLOCKQUOTE>
<DIV><BR></DIV>
<DIV>I haven’t tried implementing the MrsP myself, so I can’t really offer
much specific guidance here.</DIV><BR>
<BLOCKQUOTE type="cite">
<DIV
style="FONT-SIZE: 14px; FONT-FAMILY: 'times new roman'; WHITE-SPACE: normal; WORD-SPACING: 0px; TEXT-TRANSFORM: none; FONT-WEIGHT: normal; FONT-STYLE: normal; LETTER-SPACING: normal; TEXT-INDENT: 0px; font-variant-caps: normal; -webkit-text-stroke-width: 0px">The
resource-holding task can be preempted by other higher priority normal
execution task, but it still holds the resource. So I need to find out, is
there any task in other processor is spinning and waitting for that
resource. Sothat this processor can do the 'help'. Of cource, such task have
been enqueued on the wait queue of that semaphore. But how can I locate that
task when it locates on the middle of that queue?(traverse all the wait
queue and compare to all the processors' spinning
tasks?)</DIV></BLOCKQUOTE></DIV><BR>
<DIV>Good questions. These are exactly the kind of problems why “helping” and
“migrate-on-blocking” policies are difficult to implement in a real OS, even
though they look very appealing on paper. </DIV>
<DIV><BR></DIV>
<DIV>For what it's worth, my MC-IPC implementation requires multiprocessor
bandwidth inheritance, which runs into similar problems. It’s not part of
the LITMUS^RT mainline version, but if you are interested I can share a
version (that hasn’t been cleaned up yet) with you off list. (Of course, you’d
get it as it is, no support implied, etc.)</DIV>
<DIV><BR></DIV>
<DIV>- Björn</DIV>
<DIV><BR></DIV></DIV></BLOCKQUOTE></BODY></HTML>