HP OpenVMS Systems

ask the wizard
Content starts here

TCP/IP call blocking DECthreads?

» close window

The Question is:

I am porting unix code on OpenVMS V6.1.  This is a client/server program. This
 program uses pthread_start (decthreads), and sockets.  There are 2 threads in
 the proggram, which connects to the server and send/recv data.
After sending/receiveing couple of data, the recv() function just hangs.  Does
 not receive the data.  But using UCX, I can see data in the read buffer.
What could be the problem?  Why is the recv() function unable to read?
Additional Information:
I also tried with a simple sample socket program with two threads (meaning two
 connection to the server).  This program also hangs if I have printf()
 statements after each send and receive.  If I remove the printf() statements,
 then it even works for upto
 6 threads.
What could be the reason?
Thanks in advance,

The Answer is :

  You are working with very old and now unsupported product releases.
  Please port to a current version of TCP/IP Services and of OpenVMS.
  As of this writing, V5.3 and V7.3 are the current releases.  Also
  please install the available ECO kits for TCP/IP and OpenVMS.
  Note that DECthreads simulates multithreaded parallel operations
  on all OpenVMS VAX releases.  Parallel execution of applications based
  on DECthreads across multiple processors -- based on the availability
  of the OpenVMS kernel-threading interface -- is available on OpenVMS
  Alpha.  Not OpenVMS VAX.

answer written or last revised on ( 6-JAN-2003 )

» close window