Deutsch English Français Italiano |
<vru36r$ja1$1@reader1.panix.com> View for Bookmarking (what is this?) Look up another Usenet article |
Path: ...!weretis.net!feeder9.news.weretis.net!panix!.POSTED.spitfire.i.gajendra.net!not-for-mail From: cross@spitfire.i.gajendra.net (Dan Cross) Newsgroups: comp.arch Subject: Re: MSI interrupts Date: Tue, 25 Mar 2025 11:14:35 -0000 (UTC) Organization: PANIX Public Access Internet and UNIX, NYC Message-ID: <vru36r$ja1$1@reader1.panix.com> References: <vqto79$335c6$1@dont-email.me> <vrsaro$1faj3$9@dont-email.me> <vrsefn$siu$2@reader1.panix.com> <vrt2sb$27c13$2@dont-email.me> Injection-Date: Tue, 25 Mar 2025 11:14:35 -0000 (UTC) Injection-Info: reader1.panix.com; posting-host="spitfire.i.gajendra.net:166.84.136.80"; logging-data="19777"; mail-complaints-to="abuse@panix.com" X-Newsreader: trn 4.0-test77 (Sep 1, 2010) Originator: cross@spitfire.i.gajendra.net (Dan Cross) Bytes: 1971 Lines: 26 In article <vrt2sb$27c13$2@dont-email.me>, Chris M. Thomasson <chris.m.thomasson.1@gmail.com> wrote: >On 3/24/2025 1:14 PM, Dan Cross wrote: >> In article <vrsaro$1faj3$9@dont-email.me>, >> Chris M. Thomasson <chris.m.thomasson.1@gmail.com> wrote: >>> On 3/24/2025 11:49 AM, Dan Cross wrote: >>>> [snip] >>>> I'm sure one could do a lockless pop using a cmp exchange, but I >>>> wanted to a scenario where one would want to hold onto both >>>> locks throughout the critical section for some reason. >>>> I just don't see how this works in the proposed scenario. >>> >>> You want to hold lock A while lock B us being used? That can be tricky. >> >> Really? This happens all the time. Of course it can be tricky, >> as concurrent programming always is, but it's incredibly normal. > >Locking order comes into play here. Uggg... I have seen nightmare code >that was using recursion as well... It deadlocked at a certain depth, >only under the right conditions. The locking order was not properly >respected... Well, of course it does. But it's still something that people do all the time. - Dan C.