Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8835205
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T09:12:25+00:00 2026-06-14T09:12:25+00:00

I am wondering if the following concept is known as a programming pattern. Imagine

  • 0

I am wondering if the following concept is known as a programming pattern.

Imagine a worker queue, but instead of each queue entry beeing removed when processed, it should be removed when another thread has catched the remove-event or when a remove-event was triggered.

So it would go like this:

  • command gets into the queue
  • 2nd command gets into the queue
  • 3rd …
  • first command gets processed
  • first command waits to be removed
  • 2nd command gets processed
  • remove-event for first command was fired
  • first command gets removed
  • 2nd command waits to be removed
  • …

I hope, I made this clear enough to understand.

Now is there a boost library, which has implemented such behaviour? Is there a pattern representing this behaviour?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-14T09:12:27+00:00Added an answer on June 14, 2026 at 9:12 am

    As far as I can see, you’re just talking about two queues – the “novel” one being the queue of pending removals. Standard queues (deque) should be fine. You’d need a mutex, and a condition variable to signal the removal events. Wanting a name for such a pattern is a bit gradiose (people expect that too much these days)… if I were describing it I might say we have a decoupled removal thread (assuming that’s how you implement it), an asynchronous removal process (similarly), or even delayed element removal (which is true even if not done in a separate thread).

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Just wondering if the following is considered to be good programming practice or not?
I'm wondering whether there's an existing framework or technology concept for the following project.
I know it might sound elementary, but i'm wondering the following singleton bean: @Startup
I was programming in C doing system calls, and I was wondering the following:
I'm quite new to iOs Programming.. At the moment I'm wondering about following issue.
Wondering if following will work for google in robots.txt Disallow: /*.action I need to
I'm new to some of App Development and was wondering the following; How can
Just wondering how the following sql query would look in linq for Entity Framework...
Just wondering if the following expressions used for Value are equivalent (the column Contrib
I am wondering why the following two types struct { double re[2]; }; and

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.