Re: counting_semaphore question

Liste des GroupesRevenir à cl c++ 
Sujet : Re: counting_semaphore question
De : Bonita.Montero (at) *nospam* gmail.com (Bonita Montero)
Groupes : comp.lang.c++
Date : 14. Sep 2024, 13:15:01
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <vc3r7a$1eeqb$2@raubtier-asyl.eternal-september.org>
References : 1 2 3 4 5 6 7 8 9 10 11 12 13
User-Agent : Mozilla Thunderbird
Am 14.09.2024 um 12:58 schrieb Muttley@dastardlyhq.com:

Everything has to be polled at some level except hardware interrupt based
code.

If the queue is empty CPU-time is usually handed voluntary to
another thread - not with a lock-free-queue.

I think you missed the point - locks are just a kernel construct. Their state still has to be polled by the kernel.
No, their state is maintained in userspace and the kernel is only there
for the slow path when there's contention.

Unless the locking mechanism is implemented in hardware then software
has to manage it whether in user  space or kernel space.
The fast-path is implemented in hardware through the support of atomics.
But that wasn't the point in the discussion because this doesn't relate
to lock free queue's drawback that there's no slow path and the queue
has to be polled.

Date Sujet#  Auteur
11 Sep 24 * counting_semaphore question78Muttley
11 Sep 24 +* Re: counting_semaphore question63Bonita Montero
11 Sep 24 i`* Re: counting_semaphore question62Muttley
11 Sep 24 i `* Re: counting_semaphore question61Bonita Montero
11 Sep 24 i  +* Re: counting_semaphore question27Muttley
11 Sep 24 i  i+* Re: counting_semaphore question2Bonita Montero
11 Sep 24 i  ii`- Re: counting_semaphore question1Muttley
11 Sep 24 i  i+* Re: counting_semaphore question10David Brown
16 Sep23:22 i  ii`* Re: counting_semaphore question9Chris M. Thomasson
17 Sep09:22 i  ii `* Re: counting_semaphore question8David Brown
17 Sep20:56 i  ii  `* Re: counting_semaphore question7Chris M. Thomasson
18 Sep09:32 i  ii   `* Re: counting_semaphore question6David Brown
19 Sep12:57 i  ii    `* Re: counting_semaphore question5Bonita Montero
19 Sep13:01 i  ii     +- Re: counting_semaphore question1Bonita Montero
19 Sep21:09 i  ii     +- Re: counting_semaphore question1Chris M. Thomasson
19 Sep22:27 i  ii     `* Re: counting_semaphore question2Chris M. Thomasson
19 Sep22:30 i  ii      `- Re: counting_semaphore question1Chris M. Thomasson
12 Sep 24 i  i`* Re: counting_semaphore question14Ben Bacarisse
12 Sep 24 i  i `* Re: counting_semaphore question13Muttley
12 Sep 24 i  i  `* Re: counting_semaphore question12Andrey Tarasevich
12 Sep 24 i  i   `* Re: counting_semaphore question11Muttley
13 Sep 24 i  i    +* Re: counting_semaphore question9David Brown
13 Sep 24 i  i    i`* Re: counting_semaphore question8Muttley
13 Sep 24 i  i    i `* Re: counting_semaphore question7David Brown
13 Sep 24 i  i    i  `* Re: counting_semaphore question6Muttley
13 Sep 24 i  i    i   +* Re: counting_semaphore question3Bonita Montero
13 Sep 24 i  i    i   i+- Re: counting_semaphore question1Muttley
15 Sep17:33 i  i    i   i`- Re: counting_semaphore question1David Brown
13 Sep 24 i  i    i   `* Re: counting_semaphore question2David Brown
13 Sep 24 i  i    i    `- Re: counting_semaphore question1Muttley
13 Sep 24 i  i    `- Re: counting_semaphore question1Andrey Tarasevich
11 Sep 24 i  `* Re: counting_semaphore question33Chris M. Thomasson
12 Sep 24 i   `* Re: counting_semaphore question32Bonita Montero
12 Sep 24 i    `* Re: counting_semaphore question31Chris M. Thomasson
13 Sep 24 i     `* Re: counting_semaphore question30Bonita Montero
13 Sep 24 i      `* Re: counting_semaphore question29Chris M. Thomasson
14 Sep 24 i       `* Re: counting_semaphore question28Bonita Montero
14 Sep 24 i        +* Re: counting_semaphore question2Chris M. Thomasson
14 Sep21:07 i        i`- Re: counting_semaphore question1Chris M. Thomasson
14 Sep11:18 i        `* Re: counting_semaphore question25Muttley
14 Sep11:40 i         `* Re: counting_semaphore question24Bonita Montero
14 Sep12:58 i          +* Re: counting_semaphore question22Muttley
14 Sep13:15 i          i`* Re: counting_semaphore question21Bonita Montero
14 Sep17:13 i          i +* Re: counting_semaphore question12Muttley
14 Sep17:26 i          i i`* Re: counting_semaphore question11Bonita Montero
14 Sep17:48 i          i i `* Re: counting_semaphore question10Muttley
14 Sep17:50 i          i i  `* Re: counting_semaphore question9Bonita Montero
14 Sep17:55 i          i i   `* Re: counting_semaphore question8Muttley
14 Sep17:57 i          i i    `* Re: counting_semaphore question7Bonita Montero
15 Sep11:05 i          i i     `* Re: counting_semaphore question6Muttley
15 Sep11:48 i          i i      `* Re: counting_semaphore question5Bonita Montero
15 Sep11:52 i          i i       `* Re: counting_semaphore question4Muttley
15 Sep14:50 i          i i        `* Re: counting_semaphore question3Bonita Montero
15 Sep17:28 i          i i         `* Re: counting_semaphore question2Muttley
16 Sep05:02 i          i i          `- Re: counting_semaphore question1Bonita Montero
14 Sep21:12 i          i `* Re: counting_semaphore question8Chris M. Thomasson
15 Sep02:21 i          i  +- Re: counting_semaphore question1Chris M. Thomasson
15 Sep07:11 i          i  `* Re: counting_semaphore question6Bonita Montero
15 Sep07:20 i          i   `* Re: counting_semaphore question5Chris M. Thomasson
15 Sep09:35 i          i    `* Re: counting_semaphore question4Bonita Montero
15 Sep21:59 i          i     `* Re: counting_semaphore question3Chris M. Thomasson
16 Sep05:04 i          i      `* Re: counting_semaphore question2Bonita Montero
16 Sep22:30 i          i       `- Re: counting_semaphore question1Chris M. Thomasson
14 Sep21:09 i          `- Re: counting_semaphore question1Chris M. Thomasson
11 Sep 24 `* Re: counting_semaphore question14Andrey Tarasevich
11 Sep 24  `* Re: counting_semaphore question13Muttley
11 Sep 24   +* Re: counting_semaphore question6Bonita Montero
11 Sep 24   i`* Re: counting_semaphore question5Muttley
11 Sep 24   i +* Re: counting_semaphore question3Bonita Montero
11 Sep 24   i i`* Re: counting_semaphore question2Muttley
12 Sep 24   i i `- Re: counting_semaphore question1Bonita Montero
12 Sep 24   i `- Re: counting_semaphore question1Chris M. Thomasson
12 Sep 24   `* Re: counting_semaphore question6Andrey Tarasevich
12 Sep 24    `* Re: counting_semaphore question5Muttley
12 Sep 24     +* Re: counting_semaphore question2David Brown
12 Sep 24     i`- Re: counting_semaphore question1Muttley
12 Sep 24     +- Re: counting_semaphore question1Bonita Montero
12 Sep 24     `- Re: counting_semaphore question1Andrey Tarasevich

Haut de la page

Les messages affichés proviennent d'usenet.

NewsPortal