Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie

re: Functions that block in C

Options
  • 13-06-2003 3:27pm
    #1
    Closed Accounts Posts: 7


    Hello,

    I'm trying to create a program that is non-interruptible, effectively an atomic program but without the use of semaphores or disbaling interrupts.

    Does anyone know if there's a way to do this in C.
    I would like to be able to have a function that would always run to completion once it has executed.
    Thanks in advance,
    joe.


Comments

  • Closed Accounts Posts: 99 ✭✭QBall


    It depends on what exactly you mean by "non-interruptible".

    Do you mean one that would get exclusive use of the CPU for its entire life? Or do you mean you want a process that can't be killed until it has finished what it's doing? (This is what I think you mean, given the title of the thread)

    What OS are you intending to run this on?


Advertisement