× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



Hello Srikath,

You wrote:
>i am still in dark regarding allocating a thread/worker thread, i am using
>pthread_create() . what exactly is pthread_create(), a worker thread or am
>i allocating a thread. to be honest i am a beginner in multithreaded
>programming, if you can pass on URLs/any documents on multithreading on
>AS/400 it will be of great help.

I see Bob Crothers has provided a good explanation of "worker threads" but
as a beginner you will need a good reference.  AS/400 threads are kernel
threads and implement the Posix thread model.  Get a good book on the
subject.  The one I use is:
        Title:          Programming with POSIX Threads
        Author:         David R. Butenhof
        Publisher:      Addison-Wesley
        ISBN:           0-201-63392-2

For your earlier question regarding the use of select() get:
        Title:          Unix Network Programming
        Author:         W. Richard Stevens
        Publisher:      Prentice Hall
        ISBN:           0-13-949876-1

or the later version
        Title:          Unix Network Programming Volume 1 (Second Edition)
        Author:         W. Richard Stevens
        Publisher:      Prentice Hall
        ISBN:           0-13-490012-X

IBM used to include adequate books in the Softcopy Library on both Socket
Applications and Multithreaded Applications.  They have been moved to the
so-called Information Centre as a series of separate web pages and have
been completely destroyed in the process.  I see the Sockets Programming
Guide is available as a PDF and so is still usable.  I could not find a PDF
version of the Multithreaded Applications book.

 1.0  Where to Find Information on Multithreaded Applications
   Use the AS/400 Information Center to find information on the following
   multithreaded applications topics:
      Managing Threads on AS/400
      Thread Safety
      Multithreaded Programming Techniques
      Language Access and Threads
      Debugging and Servicing of Multithreaded Jobs
      Performance Considerations in Multithreaded Applications

Regards,
Simon Coulter.
--------------------------------------------------------------------
   FlyByNight Software         AS/400 Technical Specialists
   http://www.flybynight.com.au/

   Phone: +61 3 9419 0175   Mobile: +61 0411 091 400        /"\
   Fax:   +61 3 9419 0175   mailto: shc@flybynight.com.au   \ /
                                                             X
                 ASCII Ribbon campaign against HTML E-Mail  / \
--------------------------------------------------------------------



As an Amazon Associate we earn from qualifying purchases.

This thread ...


Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.