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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T15:36:43+00:00 2026-05-28T15:36:43+00:00

Problem is to search a string of maximum length of 10bytes in a file

  • 0

Problem is to search a string of maximum length of 10bytes in a file of size 20gb. File contains one string in one line. I am writing parallel programming to do this. I just divided the file into p processes of about (Number of bytes in the file / P) bytes and read this much chunk by all processes parallely. After this i searched a string in all the processes at the same time.

So i just want to stop searching in all the other processes when meanwhile i get match of string in any one process, to get benefit of parallel programming.

How we can stop execution of other processes?

  • 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-28T15:36:44+00:00Added an answer on May 28, 2026 at 3:36 pm

    Not sure if it is the most elegant way, but once one process found a matching string, it can MPI_Isend() to all processes that no more work needs to be done.

    Every process will check once in a while using MPI_Iprobe() if there is a msg waiting, and if there is: accept it using MPI_Rccv() and the process can now terminate itself elegantly.

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

Sidebar

Related Questions

When one creates web content in languages different than English the problem of search
I have a problem with a search query I am using my data contains
I need to extract a line above my search string (say, 19 lines above).
I have a problem and search for a solution on Google but can't find
I'm having trouble wording my problem to search for it, so if anyone could
I am trying to implement an efficient algorithm for nearest-neighbour search problem. I have
Problem: Ajax suggest-search on [ n ] ingredients in recipes. That is: match recipes
The problem is that search results overlap and make it hard to see whether
I have a problem with my search query, $s_query. The user can search a
I have a problem with my search on my site I don't understand why

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.