Re: [PHP-DEV] Re: [PHP] Threading

2003-03-06 Thread Braulio José Solano Rojas
Hi!

Thanks all of you for your answers, especially to Dave Viner.  I will be
investigating on how to solve my problem.

Maybe someone of the core of PHP could point me on how to do mutual
exclusion because I've seen code like the following inside PHP (however I
don't know if I can use it):

tsrm_mutex_lock(tsmm_mutex);
...
tsrm_mutex_unlock(tsmm_mutex);

Anyway, I will analyze my problem using the information I have and the
answers I got.

Again, thanks for your answers on this topic.

Bye!

Braulio

Melvyn Sopacua [EMAIL PROTECTED] escribió en el mensaje
news:[EMAIL PROTECTED]
At 20:12 27-2-2003, Braulio José Solano Rojas wrote:

I already know about this functionality, but as you know this is only for
Unix.  And yes it matters if the semaphores are implemented in PHP since I
need portability between different OSes. (I like Inter-Process
Comunication,
I am sorry not to have it on win32).

You are? Well, then install it:
http://www.neuro.gatech.edu/users/cwilson/cygutils/cygipc/index.html


With kind regards,

Melvyn Sopacua
?php include(not_reflecting_employers_views.txt); ?



-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, visit: http://www.php.net/unsub.php



RE: [PHP-DEV] Re: [PHP] Threading

2003-02-27 Thread Dave Viner
would semaphores provide the mutual exclusion zone you need?

dave

-Original Message-
From: Braulio José Solano Rojas [mailto:[EMAIL PROTECTED]
Sent: Thursday, February 27, 2003 8:01 AM
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: Re: [PHP-DEV] Re: [PHP] Threading


Hi!

Rasmus Lerdorf [EMAIL PROTECTED] escribió en el mensaje
news:[EMAIL PROTECTED]
 On Tue, 18 Feb 2003, Greg Donald wrote:
  On Tue, 18 Feb 2003, Bruce Miller wrote:
 
  Will PHP allow multiple-thread execution?
 
  PHP4 does not have thread support.

 Well, except for pear/PECL/threads, of course.

Is this going to be standard in the future in PHP.

I need a mutual exclusion zone in the extension I am writing.  Is this
possible other way?

Best regards,

Braulio



--
PHP Development Mailing List http://www.php.net/
To unsubscribe, visit: http://www.php.net/unsub.php



-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP-DEV] Re: [PHP] Threading

2003-02-27 Thread Braulio José Solano Rojas
Hi!

Dave Viner [EMAIL PROTECTED] escribió en el mensaje
news:[EMAIL PROTECTED]
 would semaphores provide the mutual exclusion zone you need?

I do not know yet, I should studie it, but it is likely so.

Are there semaphores in PHP?

Regards,

Braulio

 -Original Message-
 From: Braulio José Solano Rojas [mailto:[EMAIL PROTECTED]
 Sent: Thursday, February 27, 2003 8:01 AM
 To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
 Subject: Re: [PHP-DEV] Re: [PHP] Threading


 Hi!

 Rasmus Lerdorf [EMAIL PROTECTED] escribió en el mensaje
 news:[EMAIL PROTECTED]
  On Tue, 18 Feb 2003, Greg Donald wrote:
   On Tue, 18 Feb 2003, Bruce Miller wrote:
  
   Will PHP allow multiple-thread execution?
  
   PHP4 does not have thread support.
 
  Well, except for pear/PECL/threads, of course.

 Is this going to be standard in the future in PHP.

 I need a mutual exclusion zone in the extension I am writing.  Is this
 possible other way?

 Best regards,

 Braulio



 --
 PHP Development Mailing List http://www.php.net/
 To unsubscribe, visit: http://www.php.net/unsub.php





-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP-DEV] Re: [PHP] Threading

2003-02-27 Thread George Schlossnagle
On Thursday, February 27, 2003, at 01:50  PM, Braulio JosX Solano Rojas 
wrote:

Hi!

Dave Viner [EMAIL PROTECTED] escribiÛ en el mensaje
news:[EMAIL PROTECTED]
would semaphores provide the mutual exclusion zone you need?
I do not know yet, I should studie it, but it is likely so.

Are there semaphores in PHP?
Yes.  I'd recommend a reading of the fine manual.

Of course if you're actually writing an extension it doesn't matter 
much if the semaphores are implemented in PHP or not, since you'll 
probably just want to use the sysv ipc support of the os yourself, 
without taking it through php userland functions.

george

--
PHP Development Mailing List http://www.php.net/
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP-DEV] Re: [PHP] Threading

2003-02-27 Thread Braulio José Solano Rojas
Hi!

George Schlossnagle [EMAIL PROTECTED] escribió en el mensaje
news:[EMAIL PROTECTED]
On Thursday, February 27, 2003, at 01:50  PM, Braulio JosX Solano Rojas
wrote:

 Are there semaphores in PHP?

Yes.  I'd recommend a reading of the fine manual.

I did of course.

 Of course if you're actually writing an extension it doesn't matter
 much if the semaphores are implemented in PHP or not, since you'll
 probably just want to use the sysv ipc support of the os yourself,
 without taking it through php userland functions.

I already know about this functionality, but as you know this is only for
Unix.  And yes it matters if the semaphores are implemented in PHP since I
need portability between different OSes. (I like Inter-Process Comunication,
I am sorry not to have it on win32).

I am working in an extension that provides functionality to read CDS/ISIS
databases on PHP.  Those databases are files (there is not a server, but a
server is planned by the OpenIsis project [1]), so when there is concurrency
we should provide consistent data.  There is a paper on different solutions
on how to solve this on PHP [2].  I was thinking of assume the worst case:
PHP as a CGI.  But, I am really interested in multi-threading inside PHP.

CDS/ISIS is wide used in latin-america by librarians. If I could have a
multi-platform solution, that would be great.


Regards,

Braulio

[1] http://sourceforge.net/projects/isis
[2] http://openisis.org/openisis/doc/Concurrency



-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP-DEV] Re: [PHP] Threading

2003-02-27 Thread Melvyn Sopacua
At 20:12 27-2-2003, Braulio José Solano Rojas wrote:

I already know about this functionality, but as you know this is only for
Unix.  And yes it matters if the semaphores are implemented in PHP since I
need portability between different OSes. (I like Inter-Process Comunication,
I am sorry not to have it on win32).
You are? Well, then install it:
http://www.neuro.gatech.edu/users/cwilson/cygutils/cygipc/index.html
With kind regards,

Melvyn Sopacua
?php include(not_reflecting_employers_views.txt); ?
--
PHP Development Mailing List http://www.php.net/
To unsubscribe, visit: http://www.php.net/unsub.php


RE: [PHP-DEV] Re: [PHP] Threading

2003-02-27 Thread Dave Viner
i believe that win32 actually does support semaphores.  see
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dllproc/bas
e/using_synchronization.asp

for details on synchronization issues inside win32 (including mutex which is
what i think you're looking for).

or if you don't want a lot of #ifdef WIN32 in your code, you could look at
using Apache Portable Runtime (http://apr.apache.org) to enable mutex
(http://apr.apache.org/docs/apr/group__APR__ThreadMutex.html)



dave


-Original Message-
From: Braulio José Solano Rojas [mailto:[EMAIL PROTECTED]
Sent: Thursday, February 27, 2003 11:12 AM
To: [EMAIL PROTECTED]
Subject: Re: [PHP-DEV] Re: [PHP] Threading


Hi!

George Schlossnagle [EMAIL PROTECTED] escribió en el mensaje
news:[EMAIL PROTECTED]
On Thursday, February 27, 2003, at 01:50  PM, Braulio JosX Solano Rojas
wrote:

 Are there semaphores in PHP?

Yes.  I'd recommend a reading of the fine manual.

I did of course.

 Of course if you're actually writing an extension it doesn't matter
 much if the semaphores are implemented in PHP or not, since you'll
 probably just want to use the sysv ipc support of the os yourself,
 without taking it through php userland functions.

I already know about this functionality, but as you know this is only for
Unix.  And yes it matters if the semaphores are implemented in PHP since I
need portability between different OSes. (I like Inter-Process Comunication,
I am sorry not to have it on win32).

I am working in an extension that provides functionality to read CDS/ISIS
databases on PHP.  Those databases are files (there is not a server, but a
server is planned by the OpenIsis project [1]), so when there is concurrency
we should provide consistent data.  There is a paper on different solutions
on how to solve this on PHP [2].  I was thinking of assume the worst case:
PHP as a CGI.  But, I am really interested in multi-threading inside PHP.

CDS/ISIS is wide used in latin-america by librarians. If I could have a
multi-platform solution, that would be great.


Regards,

Braulio

[1] http://sourceforge.net/projects/isis
[2] http://openisis.org/openisis/doc/Concurrency



--
PHP Development Mailing List http://www.php.net/
To unsubscribe, visit: http://www.php.net/unsub.php



-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP-DEV] Re: [PHP] Threading

2003-02-27 Thread Braulio José Solano Rojas
Hi!

Rasmus Lerdorf [EMAIL PROTECTED] escribió en el mensaje
news:[EMAIL PROTECTED]
 On Tue, 18 Feb 2003, Greg Donald wrote:
  On Tue, 18 Feb 2003, Bruce Miller wrote:
 
  Will PHP allow multiple-thread execution?
 
  PHP4 does not have thread support.

 Well, except for pear/PECL/threads, of course.

Is this going to be standard in the future in PHP.

I need a mutual exclusion zone in the extension I am writing.  Is this
possible other way?

Best regards,

Braulio



-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP-DEV] Re: [PHP] Threading

2003-02-18 Thread Rasmus Lerdorf
On Tue, 18 Feb 2003, Greg Donald wrote:
 On Tue, 18 Feb 2003, Bruce Miller wrote:
 
 Will PHP allow multiple-thread execution?
 
 PHP4 does not have thread support.

Well, except for pear/PECL/threads, of course.

-Rasmus


-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP-DEV] Re: [PHP] Threading

2003-02-18 Thread Greg Donald
On Tue, 18 Feb 2003, Bruce Miller wrote:

Will PHP allow multiple-thread execution?

PHP4 does not have thread support.


-- 
Greg Donald
http://destiney.com


-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, visit: http://www.php.net/unsub.php