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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T06:44:11+00:00 2026-05-13T06:44:11+00:00

How can I do this in c#? I have GUI and worker threads and

  • 0

How can I do this in c#? I have GUI and worker threads and I have to pass the array or be able to access the array from worker array?!

Thread t = new Thread (delegate() { DoWork (double[,] data); });
t.Start();


static void DoWork (double[,] data) { do some work...; }
  • 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-13T06:44:12+00:00Added an answer on May 13, 2026 at 6:44 am

    From MSDN:

    class Test
    {
        static void Main() 
        {
            Work threadWork = new Work(yourdata);
            Thread newThread = 
                new Thread(new ThreadStart(threadWork.DoWork));
            newThread.Start();
        }
    }
    
    class Work 
    {
        private double[,] myData;
        public Work(double[,] data) {
            myData = data;
        }
    
        public void DoWork() { /* use myData */ }
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have this script: select name,create_date,modify_date from sys.procedures order by modify_date desc I can
My form receives asynchronous callbacks from another object on random worker threads. I have
I have this setup where in my development copy I can commit changes on
I have this Trigger in Postgresql that I can't just get to work (does
I have this java string: String bla = <my:string>invalid_content</my:string>; How can I replace the
I hope I can explain this clearly enough. I have my main form (A)
I don't think this can be done cleanly, but I'll ask anyway. I have
Ok, if I have this right, my code can get cookies at a specific
Ok, let's see if I can make this make sense. I have a program
this question can create a misunderstanding: I know I have to use CSS to

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.