not sure really... 

But threading in linux will show two processes when a thread is created.

Can you run strace and see if clone is called at thread creation?

Check your threading package and verify its internal operations. Newer versions 
do not show duplicate process. But older versions do.



--- On Fri, 5/15/09, jkim...@one.net <jkim...@one.net> wrote:

> From: jkim...@one.net <jkim...@one.net>
> Subject: [sqlite] SQLite spawns multiple processes?
> To: sqlite-users@sqlite.org
> Date: Friday, May 15, 2009, 10:23 AM
> 
> I'm running a embedded SQL C application (SQLite v3.6.13)
> on an embedded
> platform (Coldfire) running Linux 2.6.25 kernel. Something
> odd I've
> noticed is that when my application reaches the point of
> calling dbopen it
> spawns a new process, with the same name as my application,
> so that the
> process list always shows two of my application running.
> 
> Why is this? Is this normal behaviour?
> 
> My application talks (via a socket) to a "backend" process
> that is
> multithreaded and also reads/writes to the database and
> each thread
> creates two processes.
> 
> Am I doing something wrong here or is this just something
> SQLite does
> normally? I'm having problems with my application that seem
> to jump around
> and are definately memory corruption related so I'm
> wondering if I'm doing
> something wrong with the DB and causing this.
> 
> Any help or suggestions would be much appreciated...
> 
> _______________________________________________
> sqlite-users mailing list
> sqlite-users@sqlite.org
> http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users
> 
_______________________________________________
sqlite-users mailing list
sqlite-users@sqlite.org
http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users

Reply via email to