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 ...
  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
    Trusted Penguin elija's Avatar
    Join Date
    Jul 2004
    Location
    Either at home or at work or down the pub
    Posts
    2,301
    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.
    If we hit that bullseye, the rest of the dominoes will fall like a house of cards. Checkmate! (Zapp Brannigan)


    My new blog. It's probably not as good as I think it is.

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

    new members/users: read this first | new member faq
    no private messages requesting computer support - post them on the forums!
    please use the "report post" button to alert our forum admins to problematic posts rather than responding to them yourself.

  4. #4
    Linux Guru Rubberman's Avatar
    Join Date
    Apr 2009
    Location
    I can be found either 40 miles west of Chicago, or in a galaxy far, far away.
    Posts
    8,974
    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
  •  
...