V4RB 3.0 and pre-emptive threads

Ruslan Zasukhin sunshine at public.kherson.ua
Thu Jul 19 14:17:56 CDT 2007


On 19/7/07 8:51 PM, "Dave Addey" <listmail1 at dsl.pipex.com> wrote:

Hi Dave,

> So if I made sure to perform all of my database access on one (and only one)
> thread at a time, would that be safe?

Yes.

> I would need to be able to pass the
> database access from thread to thread, I guess.  Would this be possible
> somehow? 

In Valentina server we have N threads. Each thread do some own task e.g.
Handle network tasks, and prepare something, or logs. But when thread need
touch kernel, he get first of all access to some single global mutex. This
ensure that only one thread touch kernel at moment.

In the near future we plan start increase parallelism of kernel. For example
it looks easy enough allow that each thread do PARSING of SQL query
parallel.


Again, you need just use single mutex from few threads.


-- 
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