From mihir@noida.hcltech.com Mon Dec 10 06:51:22 2001
Received: from ngate.noida.hcltech.com ([202.54.110.230])
	by swi.psy.uva.nl (8.11.6/8.11.2) with ESMTP id fBA5pDA19045
	for <prolog@swi.psy.uva.nl>; Mon, 10 Dec 2001 06:51:15 +0100 (MET)
Received: from exch-01.noida.hcltech.com (exch-01 [204.160.254.29])
	by ngate.noida.hcltech.com (8.9.3/8.9.3) with ESMTP id LAA00964
	for <prolog@swi.psy.uva.nl>; Mon, 10 Dec 2001 11:22:20 +0530
Received: by exch-01.noida.hcltech.com with Internet Mail Service (5.5.2653.19)
	id <YJSFJW0H>; Mon, 10 Dec 2001 11:21:48 +0530
Message-ID: <E04CF3F88ACBD5119EFE00508BBB2121B1C2D1@exch-01.noida.hcltech.com>
From: Mihir Malviya <mihir@noida.hcltech.com>
To: prolog@swi.swi.psy.uva.nl
Date: Mon, 10 Dec 2001 11:21:44 +0530
MIME-Version: 1.0
X-Mailer: Internet Mail Service (5.5.2653.19)
Content-Type: multipart/alternative;
	boundary="----_=_NextPart_001_01C1813E.BFB12E60"
Subject: [SWIPL] Multithreading problem

This message is in MIME format. Since your mail reader does not understand
this format, some or all of this message may not be legible.

------_=_NextPart_001_01C1813E.BFB12E60
Content-Type: text/plain;
	charset="iso-8859-1"

Hi,
  I need to embedded SWI-prolog into a c++ application which is
multithreaded.My query is , do I have to build prolog using the
multi-threaded option?
or  can the single threaded version also be embedded into the application? 
 
My second query is the sequence of calls for running in an multithreaded
environment...
ie do I need to call PL_initialize(), and if yes, should it be called before
or after PL_thread_create() ?
 
Rgrds,
mihir

------_=_NextPart_001_01C1813E.BFB12E60
Content-Type: text/html;
	charset="iso-8859-1"

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">


<META content="MSHTML 5.00.2314.1000" name=GENERATOR></HEAD>
<BODY>
<DIV><FONT color=#800080 face=Garamond><SPAN 
class=696582805-10122001>Hi,</SPAN></FONT></DIV>
<DIV><FONT color=#800080 face=Garamond><SPAN 
class=696582805-10122001>&nbsp;&nbsp;I&nbsp;need to embedded SWI-prolog into a 
c++ application which is multithreaded.My query is , do I have to build prolog 
using the multi-threaded option?</SPAN></FONT></DIV>
<DIV><FONT color=#800080 face=Garamond><SPAN class=696582805-10122001>or&nbsp; 
can the single threaded version also be embedded into the application? 
</SPAN></FONT></DIV>
<DIV><FONT color=#800080 face=Garamond><SPAN 
class=696582805-10122001></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT color=#800080 face=Garamond><SPAN class=696582805-10122001>My second 
query is the sequence of calls for running in an multithreaded 
environment...</SPAN></FONT></DIV>
<DIV><FONT color=#800080 face=Garamond><SPAN class=696582805-10122001>ie do I 
need to call PL_initialize(), and if yes, should it be called before or after 
PL_thread_create() ?</SPAN></FONT></DIV>
<DIV><FONT color=#800080 face=Garamond><SPAN 
class=696582805-10122001></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT color=#800080 face=Garamond><SPAN 
class=696582805-10122001>Rgrds,</SPAN></FONT></DIV>
<DIV><FONT color=#800080 face=Garamond><SPAN 
class=696582805-10122001>mihir</SPAN></FONT></DIV></BODY></HTML>

------_=_NextPart_001_01C1813E.BFB12E60--

