[m-users.] ODBC library, parallel IO

Julien Fischer jfischer at opturion.com
Fri Feb 17 09:51:41 AEDT 2023


Hi Volker,

On Thu, 16 Feb 2023, Volker Wysk wrote:

> It seems to me that the ODBC library isn't thread safe, because many
> foreigen_proc's aren't declared thead_safe. Is that so?

Given the way that code currently uses global state, it isn't thread
safe.

> I believe that the parallel conjunction operator "&" can't be used for
> parallel IO, because the second conjunct depends on the output IO state of
> the first.

Correct.

> So, are explicit threads needed, when doing parallel IO? I couldn't find any
> documentation or examples for using threads. Except for the API
> documentation of the thread* libraries.

There are some examples in samples/concurrency.

Julien.


More information about the users mailing list