Find the answer to your Linux question:
Results 1 to 4 of 4
Dear all, I am using Pthread concept for developing my application Some times my system is getting hanged while the code is running and as soon as I am Pressing ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Oct 2010
    Posts
    1

    Linux Hanging Problem


    Dear all,

    I am using Pthread concept for developing my application Some times my system is getting hanged while the code is running and as soon as I am Pressing CTRL + C it is coming out of the code and system is going to the normal state. but several time only ^C is appearing in the terminal and system is not responding.

    do any one have the Solution what to do in that case.

    Thanks in Advance

    Regards,

    Peter Xenomai.

  2. #2
    Penguin of trust elija's Avatar
    Join Date
    Jul 2004
    Location
    Either at home or at work or down the pub
    Posts
    3,475
    Welcome xenomai,

    You may get a better response to this in the programming forum. I have pinged the mods to see if they will move it.

    Other than that, no idea I'm afraid.
    What do we want?
    Time machines!

    When do we want 'em?
    Doesn't really matter does it!?


    Conkybots: Interactive plugins for your Conkys!

  3. #3
    oz
    oz is offline
    forum.guy
    Join Date
    May 2004
    Location
    arch linux
    Posts
    18,733
    Quote Originally Posted by elija View Post
    I have pinged the mods to see if they will move it.
    thread moved...
    oz

  4. #4
    Linux Guru Rubberman's Avatar
    Join Date
    Apr 2009
    Location
    I can be found either 40 miles west of Chicago, in Chicago, or in a galaxy far, far away.
    Posts
    11,380
    It depends entirely on what you are doing in your code. It could be a deadlock between threads, a runaway code loop, waiting for I/O, etc. Have you tried running it in the debugger to see exactly what it is doing, and where it is doing it?
    Sometimes, real fast is almost as good as real time.
    Just remember, Semper Gumbi - always be flexible!

Posting Permissions

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