Re: [OT] How to make a "critical section" in user program?
Wojciech writes:
> I agree, but what about the root's processes?
Root's special status extends only to file access.
> Well, but in the kernel I can't use the "write(ComFd,&c,1)". Am I wrong?
> (I hope I've missed something)
Write a device driver and put your critical section in it. Run the rest of
the program in user space and call the driver when you need to do the
critical stuff.
--
John Hasler
john@dhh.gt.org (John Hasler)
Dancing Horse Hill
Elmwood, WI
Reply to: