Advertisement
Help Keep Boards Alive. Support us by going ad free today. See here: https://subscriptions.boards.ie/.
If we do not hit our goal we will be forced to close the site.

Current status: https://keepboardsalive.com/

Annual subs are best for most impact. If you are still undecided on going Ad Free - you can also donate using the Paypal Donate option. All contribution helps. Thank you.
https://www.boards.ie/group/1878-subscribers-forum

Private Group for paid up members of Boards.ie. Join the club.

re: Functions that block in C

  • 13-06-2003 03: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