V4RB 3.0 and pre-emptive threads

Ruslan Zasukhin sunshine at public.kherson.ua
Fri Jul 20 02:56:38 CDT 2007


On 20/7/07 10:08 AM, "Dave Addey" <listmail1 at dsl.pipex.com> wrote:

Hi Dave,

> Actually, I have one more question on threading:
> 
> Do I need to control access to Valentina with a mutex...
> 
> 1) ...at a database level (so that only one thread is accessing each
> database at a time)?  I usually have several databases open.

no
 
> 2) ...at an application level (so that only one thread is accessing anything
> to do with Valentina at a time)?

YES THIS ONE
 
Because exists single CACHE that manage few dbs


> 3) ...actually, it doesn't matter, because the Valentina Kernel will block
> any thread which tries to access Valentina whilst something is already
> happening?  It will then unblock the thread when the first Valentina action
> has completed. (This is a guess!)
> 
> I'm using V4RB 3.1 in REALbasic 2007r3, and am using Taylor Design's
> "PreemptiveThreadTD" classes to run REALbasic code on a background thread.
> I am running from a local file database, which is only even opened by this
> one application.
> 
> Apologies for the continued questions - I want to make sure my use of
> pre-emptive threads Valentina is completely safe.

-- 
Best regards,

Ruslan Zasukhin
VP Engineering and New Technology
Paradigma Software, Inc

Valentina - Joining Worlds of Information
http://www.paradigmasoft.com

[I feel the need: the need for speed]




More information about the Valentina mailing list