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

  • SEARCH
  • Home
  • 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 8801795
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T00:55:35+00:00 2026-06-14T00:55:35+00:00

As a part of my project I have to modify a Numerical Integration Algorithm

  • 0

As a part of my project I have to modify a Numerical Integration Algorithm using threads.

This is roughly what happens in the conventional sequential approach..

void Controller(struct DE)
{
    //initialization step
    for(;;)   //till the entire range has not been covered...
    {
         //compute the next time-point solution using the previously known solutions.
         NIiter();
         //then check if the result is acceptable or not and take the necessary steps...
    }
}

Now this is what I intend to do….

void Controller(struct DE)
{
    //initialization step
    for(;;)   //till the entire range has been covered...
    {
         //compute the next time using the previously known solution.
         NIiter();
         //when I have an approximate solution available..launch a thread to compute the next time-point using this approximate solution as a previous solution...something like forward pipelining...
         //then check if BOTH the results are acceptable or not and take the necessary steps...
    }
}

But I dont understand how to notify my controller that the an approximate solution is available…so it can launch a new thread…

This is my first exposure to multi-threaded programming…so forgive me if this seems to be an obvious question..also I am using Pthread library in my project…

  • 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-14T00:55:36+00:00Added an answer on June 14, 2026 at 12:55 am

    This is a vast topic but here are some pointers

    1. Worker threads – Basically create a bunch of threads and have a queue of tasks. They take one of the queue and do the job
    2. IPC – Here you have semaphores, shared memory, messaging passing. Links are on the page

    The Wikipedia will get you going.

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

Sidebar

Related Questions

I have this jQuery code from my previous project and I want to modify
project have 4 drawable and layout folder(xh,h,m,l). this is part of manifest: <uses-sdk android:minSdkVersion=8
Okay this is part of my search results project, in it, I have description
As part of a project I have assigned myself as a way of improving
I have a project which as part of the build process creates an XMLBeans
i have part of Asp.NET 1.1 project. I work with remote site, which works
I have been pouring through documentation as part of my quarter long project to
I have sevevral custom actions as part of an MSI project, defined in vS2008.
I have a database project (.dbp) open in Visual Studio 2008 as part of
I have a game code (from ioquake3 project) that compiles part of gameplay binaries

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.