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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T02:09:09+00:00 2026-06-03T02:09:09+00:00

for (APCounter = start; APCounter < Stager.InstructionsMemory.Length; APCounter++) { PipelineInitializor(); int i1 = APCounter;

  • 0
for (APCounter = start; APCounter < Stager.InstructionsMemory.Length; APCounter++)
{
    PipelineInitializor();
    int i1 = APCounter;
    int i = APCounter;
    tasks[i] = new BlockingCollection<Func<object>>();
    tasks[i].Add(() => Fetch(i1));
    tasks[i].Add(() => Decode(i1));
    tasks[i].Add(() => ALURes(i1));
    tasks[i].Add(() => Memory(i1));
    tasks[i].Add(() => WriteB(i1));
    InstructionThread[i] = new Thread(() => Worker(i1, tasks[i1]));
    InstructionThread[i1].Start();
}

Those are couple of threads that needs to be replaced by new threads that carry same kind of data object, but with new tasks data.

I’ve tried using the Abort method (which is not recommended), and it caused everything to halt execution, and no matter what function I call, nothing starts execution again.

  • 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-03T02:09:11+00:00Added an answer on June 3, 2026 at 2:09 am

    I would suggest you use the Task Parallel Library and the Task class, it has the capability of
    cancellation.

    “Replacing” a thread doesn’t make any sense. You can start a new thread to process the same data; but, if you have no way for the other thread to stop itself you can’t reliably stop it.

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

Sidebar

Related Questions

var tasks0 = new BlockingCollection<object>(new ConcurrentQueue<object>()); tasks0.Add(Fetch(APCounter)); tasks0.Add(Decode(APCounter)); tasks0.Add(ALURes(APCounter)); tasks0.Add(Memory(APCounter)); tasks0.Add(WriteB(APCounter)); var tasks1 =
In my code I am creating new objects of same type inside loop and
When I run the following code to add an element with an attribute it
I created a new Xcode project (iOS application, Tabbed Application). Now I'm seeing one
In my application I've created a thread which draws on a Bitmap object, and
I am attempting to insert a new node into a sorted linked list of
See this code: public class multiply { public Thread myThread; public int Counter {
An example of this would be: char str[] = Hello; int strLength = strlen(str);
I have a hidden field which is bound to a int Id in the
In my C# Silverlight application, I am trying to decode DICOM images in compressed

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.