1 message in com.mysql.lists.plusplusmultithreaded using mysqlplus
FromSent OnAttachments
Sunil Samuel01 May 2003 14:19 
Subject:multithreaded using mysqlplus
From:Sunil Samuel (ssam@websulting.com)
Date:05/01/2003 02:19:04 PM
List:com.mysql.lists.plusplus

Hi,

I have an application that use sqlplus in a multithreaded environment. The psuedo-code is as follows:

=> Connection *con_ws=new Connection (...);

+=> Thread One +==> Query query_ws(con_ws,false); +==> query_ws << some_query;

+=> Thread Two +==> Query query_ws(con_ws,false); +==> query_ws << some_query;

So, is there a one to one relationship between Connection and Query? That is, can I have two queries running against the same connection at the same time?

thanks, sunil.