[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: setup the PMU to generate an interrupt on x number of LLC misses



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>


Reply to: