Re: [hatari-devel] Falcon Sound

[ Thread Index | Date Index | More lists.tuxfamily.org/hatari-devel Archives ]


Hi,

On 10/14/2016 12:53 AM, Miro Kropáček wrote:
On 13 October 2016 at 16:55, Eero Tamminen <oak@xxxxxxxxxxxxxx> wrote:

You cannot rely just on host timing.  Processes & threads get
context switched at arbitrary points, so you will need also
locking.


Hmm and wouldn't something as a global clock help? You know that all
components would be given an information that this is the "start of the
epoch" (power up of the computer) and whatever you do, you sync it to this
ticking.

I assumed that you meant that already originally.

Only way to guarantee that things happen at timed synchronization
points (without using locking between threads), would be real-time.

However, you don't want to run program that can take all
the CPU as real-time, as that would make rest of your computer
completely inoperable.

(Real-time processes need to have strictly bound CPU usage.
To keep OS still interactive, they shouldn't take more
than few tens of percents CPU.)


	- Eero




Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/