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
Hi there,
There is an issue with role permissions that is being worked on at the moment.
If you are having trouble with access or permissions on regional forums please post here to get access: https://www.boards.ie/discussion/2058365403/you-do-not-have-permission-for-that#latest

re: Functions that block in C

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