Sybase NNTP forums - End Of Life (EOL)

The NNTP forums from Sybase - forums.sybase.com - are now closed.

All new questions should be directed to the appropriate forum at the SAP Community Network (SCN).

Individual products have links to the respective forums on SCN, or you can go to SCN and search for your product in the search box (upper right corner) to find your specific developer center.

multithreading problem with sybase

2 posts in Product Futures Discussion Last posting was on 2002-02-05 17:47:49.0Z
sailinger Posted on 2002-02-05 09:21:27.0Z
From: sailinger
Date: Tue, 5 Feb 2002 04:21:27 -0500
Newsgroups: sybase.public.ase.product_futures_discussion
Subject: multithreading problem with sybase
Message-ID: <ACBBB530D2DB1CD0003366E585256B57.0033670C85256B57@webforums>
Lines: 18
MIME-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Path: forums-1-dub!forums-master.sybase.com!forums.sybase.com!webforums.sybase.com!news
Xref: forums-1-dub sybase.public.ase.product_futures_discussion:804
Article PK: 94333

hi,evevybody:
(I am so sorry to say that my English is very pool)
I have written a multithreaded program on linux,each thread seperatly
calls cs_ctx_* to initialize/drop a context and ct_con_* to initialize/drop
a connection.
It cannot run well,compiled under Open Client 11.9. However,could it run
well on Open Client 12.5,when I link it with libcs_r.so,libct_r.so,and so
on?

another problem is :

On linux,we know this notion : one process per thread. When we call
pthread_create() N times to spawn N child threads,we can see N+2 processes
in cmdline by "ps -Af|grep <progname>".However,I can see more processes
than expected,(N+2), when runing my multithreaded program.
e.g: I just call pthread_create() ONLY ONCE to create one child
thread,which connects to sybase sqlserver.I can see 9 processes in cmdline
by inputing "ps -Af|grep <progname>",not 3 processes as expected.
why?


Michael Peppler Posted on 2002-02-05 17:47:49.0Z
From: "Michael Peppler" <mpeppler@peppler.org>
Subject: Re: multithreading problem with sybase
Date: Tue, 05 Feb 2002 09:47:49 -0800
References: <ACBBB530D2DB1CD0003366E585256B57.0033670C85256B57@webforums>
User-Agent: Pan/0.9.7 (Unix)
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit
X-No-Productlinks: Yes
Message-ID: <P$5ZL4mrBHA.304@forums.sybase.com>
Newsgroups: sybase.public.ase.product_futures_discussion
Lines: 35
NNTP-Posting-Host: gw.peppler.org 206.55.243.57
Path: forums-1-dub!forums-master.sybase.com!forums.sybase.com!not-for-mail
Xref: forums-1-dub sybase.public.ase.product_futures_discussion:803
Article PK: 94330

You should probably repost this query in
sybase.public.connectivity.open_client.

Michael

In article <ACBBB530D2DB1CD0003366E585256B57.0033670C85256B57@webforums>,

"sailinger" <unknown@spammesenseless.net> wrote:

> hi,evevybody:
> (I am so sorry to say that my English is very pool) I have written a
> multithreaded program on linux,each thread seperatly
> calls cs_ctx_* to initialize/drop a context and ct_con_* to
> initialize/drop a connection.
> It cannot run well,compiled under Open Client 11.9. However,could it
> run
> well on Open Client 12.5,when I link it with libcs_r.so,libct_r.so,and
> so on?
>
> another problem is :
>
> On linux,we know this notion : one process per thread. When we call
> pthread_create() N times to spawn N child threads,we can see N+2
> processes in cmdline by "ps -Af|grep <progname>".However,I can see more
> processes than expected,(N+2), when runing my multithreaded program.
> e.g: I just call pthread_create() ONLY ONCE to create one child
> thread,which connects to sybase sqlserver.I can see 9 processes in
> cmdline by inputing "ps -Af|grep <progname>",not 3 processes as
> expected.
> why?

--
Michael Peppler - Data Migrations Inc. - http://www.mbay.net/~mpeppler
mpeppler@peppler.org - mpeppler@mbay.net
International Sybase User Group - http://www.isug.com