Thread: How to fully utilize the CPU and RAM computer resources

  1. #1
    Registered User
    Join Date
    Sep 2009
    Posts
    14

    How to fully utilize the CPU and RAM computer resources

    I am writing VS 2005 with C++ and ASP.NET.
    I am writing network programming between web server in my computer and application gateway in another company.
    What the code should be so that I can fully utilize the web server resources?
    64bit??32bit??

  2. #2
    Officially An Architect brewbuck's Avatar
    Join Date
    Mar 2007
    Location
    Portland, OR
    Posts
    7,396
    Quote Originally Posted by rchiu5hk View Post
    I am writing VS 2005 with C++ and ASP.NET.
    I am writing network programming between web server in my computer and application gateway in another company.
    What the code should be so that I can fully utilize the web server resources?
    64bit??32bit??
    If you deploy a program to a web server that uses all of the available RAM and CPU, chances are A) the IT team will have you shot and B) you may be looking for another job
    Code:
    //try
    //{
    	if (a) do { f( b); } while(1);
    	else   do { f(!b); } while(1);
    //}

  3. #3
    Malum in se abachler's Avatar
    Join Date
    Apr 2007
    Posts
    3,195
    Quote Originally Posted by rchiu5hk View Post
    I am writing VS 2005 with C++ and ASP.NET.
    I am writing network programming between web server in my computer and application gateway in another company.
    What the code should be so that I can fully utilize the web server resources?
    64bit??32bit??
    If you took a job as a professional programmer you really should be able to answer this question yourself. You should find a new career like flipping burgers and let someone who actually knows what they are doing have the position.

  4. #4
    Registered User
    Join Date
    Sep 2009
    Posts
    14

    My IT team cannot do before

    Actually, in my previous IT Job in airline company, My other colleagues did the program for doing multi-thread programming and deploy on windows XP. I am not sure whether windows XP Problem or not. Thread cannot start messages showing in the busy time. I don't where is the reason before. Now in the current company, i am thinking of this and want to ask whether the program problem or windows XP Problem which may be corrected if moving to windows server. Isn't it?

  5. #5
    Guest Sebastiani's Avatar
    Join Date
    Aug 2001
    Location
    Waterloo, Texas
    Posts
    5,708
    No. That was most likely not the problem. To put it briefly, you shouldn't worry too much about these matters. Focus on learning how to write correct programs and the rest will take care of itself.

  6. #6
    Malum in se abachler's Avatar
    Join Date
    Apr 2007
    Posts
    3,195
    Quote Originally Posted by rchiu5hk View Post
    Actually, in my previous IT Job in airline company, My other colleagues did the program for doing multi-thread programming and deploy on windows XP. I am not sure whether windows XP Problem or not. Thread cannot start messages showing in the busy time. I don't where is the reason before. Now in the current company, i am thinking of this and want to ask whether the program problem or windows XP Problem which may be corrected if moving to windows server. Isn't it?
    There are no problems with windows XP that would cause your application to malfunction in that manner. If that's the callibre of programmers the airline industry hires, I'm taking the train next time.
    Last edited by abachler; 09-15-2009 at 11:13 AM.

  7. #7
    Registered User
    Join Date
    Sep 2001
    Posts
    4,912
    Based on the other questions you seem to be asking, I strongly recommend you slow down and go back. You need to learn to understand the fundamentals of computers much better than you do right now. Try writing some basic programs, and understanding everything that is going on. You simply cannot write good code by slapping stuff together that you found online and getting it to magically work. Your code will be extremely unreliable, ugly, and hard to maintain. I don't mean to be rude, but if you are doing this programming in a professional capacity, you need to make some back plans - you're likely to find yourself in some serious trouble very soon.

    edit: to answer your original question, the terms 64-bit and 32-bit refer to the natural word-size of the processor. A 64-bit processor is capable of working with 64 bit numbers very naturally, and can easily address 2^64 bytes of memory. A 32-bit number works primarily with 32-bit numbers. It can address more memory and work with larger numbers than that, but it requires mathematical tricks and hacks to do so - and as such, it's a lot slower and less powerful than a 64-bit system. 64-bit operating systems are written to utilize the benefits of a 64-bit architecture. Other than that - there isn't a fundamental difference. Using up all the resources on a web server is, 99.9% of the time, the worst thing you can do. If you really want to, have a look into concurrent programming, but my guess is that you're simply missing some basic fundamentals that you really need to go back and understand.

  8. #8
    Registered User C_ntua's Avatar
    Join Date
    Jun 2008
    Posts
    1,853
    Quote Originally Posted by abachler View Post
    There are no problems with windows XP that would cause your application to malfunction in that manner. If that's the callibre of programmers the airline industry hires, I'm taking the train next time.
    Save me a sit...

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Can you still view the bios screen with a bad CPU?
    By HyperCreep in forum Tech Board
    Replies: 4
    Last Post: 12-31-2006, 06:57 PM
  2. Replies: 19
    Last Post: 02-25-2003, 10:53 PM