Operating System - HP-UX
1753481 Members
4201 Online
108794 Solutions
New Discussion юеВ

Controlling and scheduling Pthread

 
SOLVED
Go to solution
Prashun Gupta
Advisor

Controlling and scheduling Pthread

Hi All,
I am working on a porting project from Hp10.2 to HP11, which has a task library. Hp has removed task library in the HPUX11. The solution from Hp which has been said is use of pthread library. Task library use to provide me some options which I am finding difficult to replicate
I need some resourses for finding answers for the following questions.
1. Can I create any number of threads, is there any resource crunch over it.

2. Is there any mechanism, where I can make a list of pthread, and take control of all the threads from a single, point. These pthread I want to replicate as task, hence i need to mimic functions like sleep, result,alert, contunue keeping control with the main program.

3. If such global resource is possible, then there is a need of scheduling technique for pthreads involved in the global resource.

Moreover Can anyone suggest goof pdf to learn pthreads with some examples in them.
Thanks
Prashun


3 REPLIES 3
Emil Velez_2
Trusted Contributor
Solution

Re: Controlling and scheduling Pthread


I periodically teach a course on thread programming for HP customers using the Pthreads book (HP Press) as a basis of the course. The book and the examples are very good and cookbook with models for large applications. It covers all of the questions you are asking in good detail with sample programs.

Emil Velez

Emil Velez
Instructor Storage, Servers, HP-UX and Partner Courses
Hewlett Packard Enterprise Education Services
Ask me about training on StoreServ (3PAR) StoreOnce, StoreEasy, StoreAll, StoreVirtual, HP-UX, ServiceGuard and HPE Partner Ready Certification Training

internet: Linkedin: http://www.linkedin.com/in/emilvelez

HPE Master ASE Server Solutions Architect V3
HPE Master ASE Storage Solutions Architect V2
HP UNIX Certified (ASE HPUX 11iv3 Administration V1)
Certified HPE Instructor
HPE Product Certified - OneView [2016]
HP Sales Certified -Servers, Converged Systems and Services [2015]
HPE Product Certified - Converged Solutions [2017]
Prashun Gupta
Advisor

Re: Controlling and scheduling Pthread

Thanks..
Can you send me your email address and name of the book with ISBN number
Prashun
John Poff
Honored Contributor

Re: Controlling and scheduling Pthread

Hi Prashun,

This might be the book he is talking about:

thread time: the multithreaded programming guide

Scott J. Norton
Mark D. DiPasquale

Published November, 1996 by Prentice Hall PTR

Copyright 1997
Paper bound w/CD-ROM, 560 pp.

ISBN 0-13-190067-6

You can find it at this URL:

http://www.hp.com/hpbooks/prentice/ptr_0131900676.html


JP