On Tue, Aug 24, 2010 at 16:52, Christophe Aeschlimann <c.aeschlimann@xxxxxxxxxxxx> wrote: > > Now what will happen if a thread tries to switch on the led while another > thread tries to switch it off ? > > Thank your for your comments / help. I am not sysfs guy, but I think it will be executed in first come first served The way I see it, eventually in the hardware level, it should be something like inb/outb, right? thus we could say it's more or less "atomic" operation. Then, even without any kind of lock....it should be safe.... -- regards, Mulyadi Santosa Freelance Linux trainer and consultant blog: the-hydra.blogspot.com training: mulyaditraining.blogspot.com -- To unsubscribe from this list: send an email with "unsubscribe kernelnewbies" to ecartis@xxxxxxxxxxxx Please read the FAQ at http://kernelnewbies.org/FAQ