What is the most efficient way to get prompted whenever the content of
a memory location has been changed by some other program running the
system.
So the most efficient solution is to insert a layer between translation of
virtual to physical address, capturing the locations you want. Unfortunately
there is no easy way of doing this, and certainly no way in standard C.
i could have definetly used mailboxes or shared memory to inform my
program but the main problem is that i could not change the code of the
other program who may be changing in the memory location ..
the actual need for this program i will define you properly :
The program which i actually want to design is that
my program will be capable of getting all the information about the
printing activities performed by different machines in the print server
i have designed that my program will sit in the printing port like
512 of the print server .
but it will be inefficient to run a infinite loop to know that any
packets have arrived or not
So it want to have some technique so that my program will automatically
be notified whenever a packects comes into that port ...
now
i was thinking that if somehow i am able to know that the packet has
reached the ports then my program could initiate
like as you think of interupt.
this could save precious CPU usage due to my continously running
program