Question about blocks and not blocks of threads

Ruslan Zasukhin ruslan_zasukhin at valentina-db.com
Thu Aug 12 12:30:49 CDT 2010


On 8/12/10 3:28 PM, "Norman Palardy" <npalardy at great-white-software.com>
wrote:

Hi Norman,

>> Anybody know what this means and how this was made?
>> 
>> Above picture is next as I understand:
>> 
>>     REALbasic thread -> plugin func  ->  remote DBMS
>> 
>> 
>> DBMS is thrid party app, which can do call e.g. 30 second.
>> 
>> As I understand, since RB has cooperative threads, and there is no
>> call
>> yield() in such  plugin  func, then the whole RB itself hangs. Right?
>> 
>> Now question is:
>>    * does RB SDK have some new features to resolve this?
>>    * or other ways offered?
>>    * or this is hidden API of RB ?
>> 
> 
> I'm not certain of the details for the ODBC plugin BUT I do know that
> for PostgreSQL, mysql etc they all have an async API as well as a
> synchronous one.

> The async API's are used and those allow the calling thread/process to
> simply wait and do other work while the SQL runs.

Okay I see now the picture.
Thank you very much.

Since RB do not provides preemptive threads,
This db plugins was made more complex than required:
    using ASYNCH calls and callbacks.

And If RB have preemptive threads, then no needs at all
In such dances... Could be possible to use SYNC API.

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