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 7002189
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T20:53:48+00:00 2026-05-27T20:53:48+00:00

I am researching for an architecture for creating an application in C++ to process

  • 0

I am researching for an architecture for creating an application in C++ to process multiple inputs at the same time in different cores. Each input is processed in a single core simultaneously. Each of the process on a core, the same filters will be processed through. For example: filter1.apply(), filter2.apply() and filter3.apply(). The processes are illustrated for 4 cores for 4 inputs as below:

[core 1]   [core 2]    [core 3]   [core 4]
   |          |            |         |     
   V          V            V         V
  input1     input2      input3     input4
   |          |            |         |    
   V          V            V         V 
 filter1    filter1     filter1    filter1
   |          |            |         |    
   V          V            V         V 
 filter2    filter2     filter2    filter2
   |          |            |         |    
   V          V            V         V 
 filter3    filter3     filter3    filter3
   |          |            |         |    
   V          V            V         V 
 output1   output2      output3    output4

I dont know which architecture or design pattern is suitable for this. It would be great if you give me some artifacts (documents or sample application) to read further.

Thanks in advance.

  • 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-05-27T20:53:49+00:00Added an answer on May 27, 2026 at 8:53 pm

    Usually thread pools are used to implement such designs. They scale virtually infinitely for independent processes. You can find easy implementations in TBB and PPL. They offer concurrency-related versions of many Standard algorithms and containers. For example, in this sample I’ve used concurrent_vector, which is a vector-like container which can be safely mutated from several threads concurrently, and parallel_for_each, which runs the function on many threads at once.

    concurrent_vector<output> outputs;
    std::vector<input> inputs;
    parallel_for_each(inputs.begin(), inputs.end(), [](input& input) {
        outputs.push_back(filter3(filter2(filter1(input))));
    });
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

After researching a bit how the different way people slugify titles, I've noticed that
I am creating an iPhone app for doing time entry against projects. My UI
I'm researching buffer overflows (on IA32 architecture) and I would like to clarify one
I am in a process of planning an architecture for a line of business
Im currently developing a java web application, and im researching how i should combine
I am researching for an application at the moment. One of the interesting ideas
While researching this issue, I found multiple mentions of the following scenario online, invariably
On researching another question I noted that the stat function in Perl can take
While researching the issue of JSON vs XML , I came across this question
In researching how to convert a NameValueCollection to a querystring, I have come across

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.