forgot tp mention, pthread_create() return an error EBUSY ("The system
cannot allow thread creation in this process at this time").

> ----------
> From:         Srikanth_D[SMTP:Srikanth_D@satyam.com]
> Reply To:     c400-l@midrange.com
> Sent:         Tuesday, March 26, 2002 4:17 PM
> To:   c400-l@midrange.com
> Subject:      [C400-L] printf() in a pthread program
>
> hi all,
>
> sample programs listed in IBM's site (URL :
> http://publib.boulder.ibm.com/pubs/html/as400/ic2924/info/index.htm) shows
> use of printf() in programs that uses <pthread.h>, i could get to run
> pthread programs run asynchronously in QBATCH with a job description that
> is
> set as ALWMLTTHD(*YES).
>
> i tried to run programs using pthread in an interactive subsystem,
> printf()
> in the _user_main() only works. how do i go about using printf() inside
> child threads, how do i get to run the sample programs listed in IBM's
> site.
>
> could i get some help please.
>
> thanks and regards in advance.
> -srikanth
> **************************************************************************
> This email (including any attachments) is intended for the sole use of the
> intended recipient/s and may contain material that is CONFIDENTIAL AND
> PRIVATE COMPANY INFORMATION. Any review or reliance by others or copying
> or
> distribution or forwarding of any or all of the contents in this message
> is
> STRICTLY PROHIBITED. If you are not the intended recipient, please contact
> the sender by email and delete all copies; your cooperation in this regard
> is appreciated.
> **************************************************************************
> _______________________________________________
> This is the C programming iSeries / AS400 (C400-L) mailing list
> To post a message email: C400-L@midrange.com
> To subscribe, unsubscribe, or change list options,
> visit: http://lists.midrange.com/cgi-bin/listinfo/c400-l
> or email: C400-L-request@midrange.com
> Before posting, please take a moment to review the archives
> at http://archive.midrange.com/c400-l.
>
**************************************************************************
This email (including any attachments) is intended for the sole use of the
intended recipient/s and may contain material that is CONFIDENTIAL AND
PRIVATE COMPANY INFORMATION. Any review or reliance by others or copying or
distribution or forwarding of any or all of the contents in this message is
STRICTLY PROHIBITED. If you are not the intended recipient, please contact
the sender by email and delete all copies; your cooperation in this regard
is appreciated.
**************************************************************************


This thread ...


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

This mailing list archive is Copyright 1997-2019 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 here. If you have questions about this, please contact [javascript protected email address].