Re: Posix threads: CLOCK_REALTIME/CLOCK_MONOTONIC

2005-06-29 Thread John Baldwin
On Wednesday 29 June 2005 03:57 am, Norbert Koch wrote: > Hello. > > I am working on a multi-threaded application which > may call settimeofday() and therefore may have > serious problems with timing calculations. > > In my applications I calclulate time differences > using clock_gettime(CLOCK_MONO

Re: POSIX Threads

2004-01-26 Thread Jeremy Messenger
On Tue, 27 Jan 2004 01:19:43 +0100, ISAAC GELADO FERNANDEZ <[EMAIL PROTECTED]> wrote: - Mensaje original - De: Jeremy Messenger <[EMAIL PROTECTED]> Fecha: Miércoles, Octubre 29, 2003 6:33 pm Asunto: Re: POSIX Threads On Wed, 29 Oct 2003 13:10:53 +0100, Isaac Gelado <[

Re: POSIX Threads

2004-01-26 Thread ISAAC GELADO FERNANDEZ
- Mensaje original - De: Jeremy Messenger <[EMAIL PROTECTED]> Fecha: Miércoles, Octubre 29, 2003 6:33 pm Asunto: Re: POSIX Threads > On Wed, 29 Oct 2003 13:10:53 +0100, Isaac Gelado <[EMAIL PROTECTED]> wrote: > > > > But, when the server is running under

Re: POSIX Threads

2004-01-26 Thread Jeremy Messenger
On Wed, 29 Oct 2003 13:10:53 +0100, Isaac Gelado <[EMAIL PROTECTED]> wrote: But, when the server is running under FreeBSD 5.0 I think that you do really need to update your machine to 5.1-CURRENT for the threads. It's a lot improvement from 5.0, but I have no idea if it will solve your proble

Re: POSIX Threads

2003-10-30 Thread Dan Nelson
In the last episode (Oct 30), Isaac Gelado said: > Dan Nelson escribiÃ: > >In the last episode (Oct 29), Isaac Gelado said: > >>This schema is working correctly in a linux machine, so when a > >>packet is captured an CORBA event is sent to clients. But, when the > >>server is running under FreeBSD

Re: POSIX Threads

2003-10-30 Thread Isaac Gelado
Dan Nelson escribió: In the last episode (Oct 29), Isaac Gelado said: I am developing a distributed application based on MICO (mico-2.3.9), which uses Packet Capture Library (PCapLib). In the code, I create a posix thread to execute the pcap_loop function (this function waits until certain number

Re: POSIX Threads

2003-10-29 Thread Dan Nelson
In the last episode (Oct 29), Isaac Gelado said: > I am developing a distributed application based on MICO (mico-2.3.9), > which uses Packet Capture Library (PCapLib). > > In the code, I create a posix thread to execute the pcap_loop > function (this function waits until certain number of packets

Re: POSIX Threads

2003-10-29 Thread Q
Why don't you either coalesce the events or throttle your send-event frequency so that it waits a minimum amount of time between sending each CORBA event. That should make your application more robust and better able to handle any receive rate you care to throw at it. As for why it happens.. I don

Re: Posix Threads

1999-12-26 Thread Ken Bolingbroke
When the main thread exits, all active threads are immediately terminated. Since your main subroutine has nothing after the pthread_create(), it immediately exits, thus your secondary thread has no chance to run. Add a delay at the end of the main thread to give the pthread_create() the time it

Re: POSIX threads

1999-10-28 Thread David A. Bader
> When you say the "new FreeBSD 3.x threads", you mean FreeBSDs default > libc_r library, not the LinuxThreads library, right? Correct. > In what way does your program crash? Have you debugged it? And > what version of FreeBSD 3.x are you talking about? I'm running FreeBSD-3.3R, and I'll try

Re: POSIX threads

1999-10-28 Thread Alfred Perlstein
On Thu, 28 Oct 1999, David A. Bader wrote: > > I'm familiar with LinuxThreads libc_r that uses BOTH SIGUSR1 and > SIGUSR2. I recently took code that used to work with FSU's > implementation of threads under FreeBSD; and instead recompiled with > the new FreeBSD 3.x threads; however, it crashes n

Re: POSIX threads

1999-10-28 Thread Daniel Eischen
> I'm familiar with LinuxThreads libc_r that uses BOTH SIGUSR1 and > SIGUSR2. I recently took code that used to work with FSU's > implementation of threads under FreeBSD; and instead recompiled with > the new FreeBSD 3.x threads; however, it crashes now when creating > threads. When you say the "

Re: POSIX threads

1999-10-28 Thread David A. Bader
I'm familiar with LinuxThreads libc_r that uses BOTH SIGUSR1 and SIGUSR2. I recently took code that used to work with FSU's implementation of threads under FreeBSD; and instead recompiled with the new FreeBSD 3.x threads; however, it crashes now when creating threads. The FSU threads (that used

Re: POSIX threads

1999-10-28 Thread Daniel Eischen
> I have an application that uses SIGUSR1, but also POSIX threads. It > appears (?) that the user-level POSIX threads now incorporated into > FreeBSD 3.x use SIGUSR1 and SIGUSR2. Is this correct? If so, and I > have a threaded application, what signals are still available for use? No, the thread

Re: POSIX threads question

1999-07-20 Thread Andy Doran
man 3 setvbuf - ad > Hi there, > > I have written a multithreaded application. > In which, I have redirected stdin, stdout and stderr to some files. > > Does anybody know why if I make a call to fprintf family of functions, I get > nothing in the output files, until I call fflush? To Unsubscri

Re: POSIX threads question

1999-07-20 Thread Nick Hibma
Files are block buffered not line buffered. Switch on hot piping (sorry, don't know how to), or wait until you have written 64kb, of flush more often. Nick On Tue, 20 Jul 1999, Andrei Iltchenko wrote: > Hi there, > > I have written a multithreaded application. > In which, I have redirecte

Re: POSIX threads question

1999-07-20 Thread Andy Doran
man 3 setvbuf - ad > Hi there, > > I have written a multithreaded application. > In which, I have redirected stdin, stdout and stderr to some files. > > Does anybody know why if I make a call to fprintf family of functions, I get nothing >in the output files, until I call fflush? To Unsubscri

Re: POSIX threads question

1999-07-20 Thread Nick Hibma
Files are block buffered not line buffered. Switch on hot piping (sorry, don't know how to), or wait until you have written 64kb, of flush more often. Nick On Tue, 20 Jul 1999, Andrei Iltchenko wrote: > Hi there, > > I have written a multithreaded application. > In which, I have redirect