#CPU Sharing question.
Hello folks, here's a techie question for you…
I'm working on building a .library that will allow multiple processes to
access a RAM resident database. Any one of these process may add, delete,
or search for a record. Because of potential conflicts between these
activities, I will be spawning off a daemon task that will handle the
deletions, additions, and database restructuring on its own, in a FIFO
fasion.
My question is: Given that the other processes and tasks will be forced to
wait while the daemon does its work (ie. if task A wants to delete a record
from the database, it will send a message to the daemon and wait for the
reply before continuing.), should I worry about the daemon getting its fair
share of CPU time? Or, should I play games with its priority? Or what is
the proper way to handle this?