Results 1 to 4 of 4

Thread: Multi Processor Application

  1. #1

    Thread Starter
    ^:^...ANGEL...^:^ wrack's Avatar
    Join Date
    Mar 2002
    Location
    Melbourne, AUSTRALIA
    Posts
    2,695

    Question Multi Processor Application

    .NET Framework 101

    Any .NET app is compiled to an intermediate code and then when the application is ran the first time on any machine, the .NET Framework process compiles that intermediate code to be optimized for the machine it's running on.

    My question comes now..! Does that mean that it can take full advantage of Multi Processor/Multi Core CPUs automatically..?

    Cheers

  2. #2
    I'm about to be a PowerPoster!
    Join Date
    Jan 2005
    Location
    Everywhere
    Posts
    13,647

    Re: Multi Processor Application

    I believe so, but only if you are making efficient use of threading in your application by design.

  3. #3
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,221

    Re: Multi Processor Application

    I'm not sure how much you already know about multi-threading but the Articles -> Advanced .NET link in my signature leads to series of advanced .NET topics including Managed Threading and Asynchronous Programming, which you will need to use copiously to take advantage of multiple processors. If you design your app to use a single thread then the Framework won't change that. It couldn't possibly because it would have no idea how everything needed to be synchronised. Note also that use of multiple threads can, in certain instances, slow down an app when running on a single processor system. The types of apps that benefit most from multi-threading are those that have long-running operations that don't necessarily prevent the user or the app doing something else at the same time. If your app doesn't have those sorts of operations then multi-threading will not be of any benefit.
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

  4. #4

    Thread Starter
    ^:^...ANGEL...^:^ wrack's Avatar
    Join Date
    Mar 2002
    Location
    Melbourne, AUSTRALIA
    Posts
    2,695

    Re: Multi Processor Application

    Thanks both. I am writing an app which will be deployed on a server where multi processor is a requirement (other apps running requires it). So if I am not going to use the full potential of the server's processor cores than no point migrating my app to the new server requirements.

    Currently its in VB6 where I would not prefer going to threaded route. Its mostly used behind the scene data processing and manipulation so I think it would best benefit from using all processors where I can kick in as many threads as number of processors and process that many times more data.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width