* TRU64/HP-UX Pthreads/aio_xxx ... differences
@ 2001-04-07 15:01 MrSignor
2001-04-07 20:11 ` Ivan Skytte Jørgensen
` (2 more replies)
0 siblings, 3 replies; 9+ messages in thread
From: MrSignor @ 2001-04-07 15:01 UTC (permalink / raw)
Greetings,
I have been asked to convert some software that runs under OpenVMS to
UNIX,
HP-UX 11.0 in particular ... the software is a Routing Server, accepts
multiple
inbound TCP connections, makes a limited number of outbound TCP
connections,
and multiplexes inbound data through the outbound connections.
Because I have access to an Alpha running TRU64 V5.1 I am planning to
do most
of the work using TRU64, and hope that moving the completed work to
HP-UX 11.0 will be trivial ?
I am planning on using Pthreads, plus the Posix real-time extensions for
asynchronous I/O, ie the aio_xxx routines. However, in their infinite
wisdom (and according to Gallmeister) Posix allows OS's to support some
Posix options but not others, yet call themself Posix real-time
compliant.
Questions
=======
If I stick to regular Pthreads and the aio_xxx routines, does anyone
know
what optional interfaces exist on TRU64, but NOT HP-UX 11.0. ?
Or any other caveats I should be aware of ?
TIA
-Fred
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: TRU64/HP-UX Pthreads/aio_xxx ... differences
2001-04-07 15:01 TRU64/HP-UX Pthreads/aio_xxx ... differences MrSignor
@ 2001-04-07 20:11 ` Ivan Skytte Jørgensen
2001-04-11 19:49 ` ����
2001-04-13 21:33 ` emilvelez
2 siblings, 0 replies; 9+ messages in thread
From: Ivan Skytte Jørgensen @ 2001-04-07 20:11 UTC (permalink / raw)
MrSignor wrote:
>
[snip]
> If I stick to regular Pthreads and the aio_xxx routines,
> does anyone know
> what optional interfaces exist on TRU64, but NOT HP-UX 11.0. ?
Yes, HP probably does :-)
I would recommend visiting http://www.docs.hp.com to verify that the
interfaces that you use are available on HP/UX
Regards,
Ivan
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: TRU64/HP-UX Pthreads/aio_xxx ... differences
2001-04-07 15:01 TRU64/HP-UX Pthreads/aio_xxx ... differences MrSignor
2001-04-07 20:11 ` Ivan Skytte Jørgensen
@ 2001-04-11 19:49 ` ����
2001-04-13 21:33 ` emilvelez
2 siblings, 0 replies; 9+ messages in thread
From: ���� @ 2001-04-11 19:49 UTC (permalink / raw)
if you wanna use Pthread, it's good. but you'd better not use aio-xxx for
socket programming yet.
aoi-xxx implementations are almost shit!
most of the implementations based on creating
a thread for an aio operation.
a few of them use thread pool. but it's more horrible because you can only
call as many aio-opeations as the number of threads in a pool.
most of aio-operations reside on the pool for a long time especially for
input-operation.
H. Kim
"MrSignor" <MrSignor@nospam_bellatlantic.net> wrote in message
news:XYFz6.12160$jL4.3873184@typhoon1.ba-dsg.net...
> Greetings,
> I have been asked to convert some software that runs under OpenVMS to
> UNIX,
> HP-UX 11.0 in particular ... the software is a Routing Server, accepts
> multiple
> inbound TCP connections, makes a limited number of outbound TCP
> connections,
> and multiplexes inbound data through the outbound connections.
>
> Because I have access to an Alpha running TRU64 V5.1 I am planning to
> do most
> of the work using TRU64, and hope that moving the completed work to
> HP-UX 11.0 will be trivial ?
>
> I am planning on using Pthreads, plus the Posix real-time extensions
for
> asynchronous I/O, ie the aio_xxx routines. However, in their infinite
> wisdom (and according to Gallmeister) Posix allows OS's to support
some
> Posix options but not others, yet call themself Posix real-time
> compliant.
>
>
> Questions
> =======
> If I stick to regular Pthreads and the aio_xxx routines, does anyone
> know
> what optional interfaces exist on TRU64, but NOT HP-UX 11.0. ?
>
> Or any other caveats I should be aware of ?
>
> TIA
>
> -Fred
>
>
>
>
>
>
>
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: TRU64/HP-UX Pthreads/aio_xxx ... differences
2001-04-07 15:01 TRU64/HP-UX Pthreads/aio_xxx ... differences MrSignor
2001-04-07 20:11 ` Ivan Skytte Jørgensen
2001-04-11 19:49 ` ����
@ 2001-04-13 21:33 ` emilvelez
2001-04-16 16:16 ` Robert Lopez
2 siblings, 1 reply; 9+ messages in thread
From: emilvelez @ 2001-04-13 21:33 UTC (permalink / raw)
You can check the each C library function and see if it is thread safe. I
am not
sure the state of the functions that you are creating. Take a look at a
book called
threadtime which covers the Posix libraries and the HP-UX extensions.
Good luck
"MrSignor" <MrSignor@nospam_bellatlantic.net> wrote in message
news:XYFz6.12160$jL4.3873184@typhoon1.ba-dsg.net...
> Greetings,
> I have been asked to convert some software that runs under OpenVMS to
> UNIX,
> HP-UX 11.0 in particular ... the software is a Routing Server, accepts
> multiple
> inbound TCP connections, makes a limited number of outbound TCP
> connections,
> and multiplexes inbound data through the outbound connections.
>
> Because I have access to an Alpha running TRU64 V5.1 I am planning to
> do most
> of the work using TRU64, and hope that moving the completed work to
> HP-UX 11.0 will be trivial ?
>
> I am planning on using Pthreads, plus the Posix real-time extensions
for
> asynchronous I/O, ie the aio_xxx routines. However, in their infinite
> wisdom (and according to Gallmeister) Posix allows OS's to support
some
> Posix options but not others, yet call themself Posix real-time
> compliant.
>
>
> Questions
> =======
> If I stick to regular Pthreads and the aio_xxx routines, does anyone
> know
> what optional interfaces exist on TRU64, but NOT HP-UX 11.0. ?
>
> Or any other caveats I should be aware of ?
>
> TIA
>
> -Fred
>
>
>
>
>
>
>
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: TRU64/HP-UX Pthreads/aio_xxx ... differences
2001-04-13 21:33 ` emilvelez
@ 2001-04-16 16:16 ` Robert Lopez
2001-04-17 15:27 ` Bil Lewis
` (3 more replies)
0 siblings, 4 replies; 9+ messages in thread
From: Robert Lopez @ 2001-04-16 16:16 UTC (permalink / raw)
"emilvelez" <emil_velez@charter.net> writes:
> [snip]
> Take a look at a
> book called
> threadtime which covers the Posix libraries and the HP-UX extensions.
> [snip]
Can you give more information on this book?
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: TRU64/HP-UX Pthreads/aio_xxx ... differences
2001-04-16 16:16 ` Robert Lopez
@ 2001-04-17 15:27 ` Bil Lewis
2001-04-17 15:30 ` Bil Lewis
` (2 subsequent siblings)
3 siblings, 0 replies; 9+ messages in thread
From: Bil Lewis @ 2001-04-17 15:27 UTC (permalink / raw)
Robert Lopez wrote:
>
> "emilvelez" <emil_velez@charter.net> writes:
>
> > [snip]
> > Take a look at a
> > book called
> > threadtime which covers the Posix libraries and the HP-UX extensions.
> > [snip]
>
> Can you give more information on this book?
Take a look at:
Books
There are presently 17 books out on the subject.
My opinions of the books can be found at:
http://www.LambdaCS.com/books/books.html
-Bil
--
================
Bil@LambdaCS.com
http://www.LambdaCS.com
Lambda Computer Science
555 Bryant St. #194
Palo Alto, CA, 94301
Phone/FAX: (650) 328-8952 St Petersburg: +7 812 966 5359
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: TRU64/HP-UX Pthreads/aio_xxx ... differences
2001-04-16 16:16 ` Robert Lopez
2001-04-17 15:27 ` Bil Lewis
@ 2001-04-17 15:30 ` Bil Lewis
2001-04-17 15:30 ` Bil Lewis
2001-04-17 17:03 ` Aaron Sawyer
3 siblings, 0 replies; 9+ messages in thread
From: Bil Lewis @ 2001-04-17 15:30 UTC (permalink / raw)
Robert Lopez wrote:
>
> "emilvelez" <emil_velez@charter.net> writes:
>
> > [snip]
> > Take a look at a
> > book called
> > threadtime which covers the Posix libraries and the HP-UX extensions.
> > [snip]
>
> Can you give more information on this book?
Take a look at:
Books
There are presently 17 books out on the subject.
My opinions of the books can be found at:
http://www.LambdaCS.com/books/books.html
-Bil
--
================
Bil@LambdaCS.com
http://www.LambdaCS.com
Lambda Computer Science
555 Bryant St. #194
Palo Alto, CA, 94301
Phone/FAX: (650) 328-8952 St Petersburg: +7 812 966 5359
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: TRU64/HP-UX Pthreads/aio_xxx ... differences
2001-04-16 16:16 ` Robert Lopez
2001-04-17 15:27 ` Bil Lewis
2001-04-17 15:30 ` Bil Lewis
@ 2001-04-17 15:30 ` Bil Lewis
2001-04-17 17:03 ` Aaron Sawyer
3 siblings, 0 replies; 9+ messages in thread
From: Bil Lewis @ 2001-04-17 15:30 UTC (permalink / raw)
Robert Lopez wrote:
>
> "emilvelez" <emil_velez@charter.net> writes:
>
> > [snip]
> > Take a look at a
> > book called
> > threadtime which covers the Posix libraries and the HP-UX extensions.
> > [snip]
>
> Can you give more information on this book?
Take a look at:
Books
There are presently 17 books out on the subject.
My opinions of the books can be found at:
http://www.LambdaCS.com/books/books.html
-Bil
--
================
Bil@LambdaCS.com
http://www.LambdaCS.com
Lambda Computer Science
555 Bryant St. #194
Palo Alto, CA, 94301
Phone/FAX: (650) 328-8952 St Petersburg: +7 812 966 5359
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: TRU64/HP-UX Pthreads/aio_xxx ... differences
2001-04-16 16:16 ` Robert Lopez
` (2 preceding siblings ...)
2001-04-17 15:30 ` Bil Lewis
@ 2001-04-17 17:03 ` Aaron Sawyer
3 siblings, 0 replies; 9+ messages in thread
From: Aaron Sawyer @ 2001-04-17 17:03 UTC (permalink / raw)
Robert Lopez wrote:
>
> "emilvelez" <emil_velez@charter.net> writes:
>
> > [snip]
> > Take a look at a
> > book called
> > threadtime which covers the Posix libraries and the HP-UX extensions.
> > [snip]
>
> Can you give more information on this book?
ISBN 0-13-190067-6
UPC 9 780131 900677 90000
Thread Time: The Multithreaded Programming Guide
Scott J. Norton
Mark D. DiPasquale
Hewlett-Packard Professional Books
Copyright 1997 by Hewlett-Packard Company
Published by Prentice Hall PTR
Prentice-Hall, Inc.
A Simon & Schuster Company
1 Lake Street
Upper Saddle River, New Jersey 07458
Corporate Sales: Phone: 1.800.382.3419 Fax: 1.201.236.7141
http://www.prenhall.com/
Watch out for the example at the bottom of p173.
The pthread_sigmask call should be
either
pthread_sigmask( SIG_SETMASK, &oldset, (sigset_t *)NULL );
or
pthread_sigmask( SIG_UNBLOCK, &newset, (sigset_t *)NULL );
NOT
pthread_sigmask( SIG_UNBLOCK, &oldset, (sigset_t *)NULL );
--
abuse@msn.com abuse@sprint.com abuse@aol.com abuse@yahoo.com
abuse@hotmail.com
abuse@earthlink.com abuse@lycos.com admin@loopback $LOGIN@localhost
$USER@$HOST
$LOGNAME@localhost $USER@localhost root@mailloop.com -h1024@localhost
customer@email.usps.gov fraudinfo@psinet.com
| D. Aaron Sawyer : Aaron.Sawyer@IrisSP.AMcom |
| Iris Associates : Voice: +1.978.392.5298 |
| Five Technology Park Drive : Fax: +1.978.392.6669 |
| Westford, MA 01886 : Email: s/SP.AM/./ above |
^ permalink raw reply [flat|nested] 9+ messages in thread
end of thread, other threads:[~2001-04-17 17:03 UTC | newest]
Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-04-07 15:01 TRU64/HP-UX Pthreads/aio_xxx ... differences MrSignor
2001-04-07 20:11 ` Ivan Skytte Jørgensen
2001-04-11 19:49 ` ����
2001-04-13 21:33 ` emilvelez
2001-04-16 16:16 ` Robert Lopez
2001-04-17 15:27 ` Bil Lewis
2001-04-17 15:30 ` Bil Lewis
2001-04-17 15:30 ` Bil Lewis
2001-04-17 17:03 ` Aaron Sawyer
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox