Emanuel Berg <embe8573@student.uu.se> writes: > I have written a program [1] in C++ that uses polling, > but I was told that wasn't good enough so now I search > for a "preemptive" or interrupt-based solution. To block on accesses to a file until it actually has data for you try reading up on the `select` call: % man 2 select -- Devrin Talen <dct23@cornell.edu>