- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Thread - what is the definition of it?
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-29-2003 02:47 AM
тАО12-29-2003 02:47 AM
Mott Given
Solved! Go to Solution.
- Tags:
- pthread
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-29-2003 03:23 AM
тАО12-29-2003 03:23 AM
Solutionhttp://devrsrc1.external.hp.com/STKT/partner/threads.html
Here is an excerpt:
A thread (as defined by Maurice Bach's "The Design of the UNIX Operating System") is an independent flow of control within a process, composed of a context (including register set and a program counter) and a sequence of instructions to execute. The traditional flow of control within a program has been a process with a single context of registers, following a single path through the code. This is referred to as the "process-based" or "single-threaded model". For an application in a single-threaded model to handle multiple tasks, it would have to break those tasks up into multiple processes, coordinate with signal handlers to provide some concurrency, or simply deal with those tasks serially (one after the other).
A multi-threaded model for a process allows multiple concurrent paths of execution, or "threads", through the same process, allowing a single process to handle multiple tasks without having to program to serially move from one to the other. A multi-threaded process shares most of the process-related data, with only an additional kthread structure allocated for each of the multiple threads to give its register context, along with a private stack area and related resources. Access to multi-threading functionality is a tool a programmer can choose to use to improve the coding style or throughput of an application.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-29-2003 03:28 AM
тАО12-29-2003 03:28 AM
Re: Thread - what is the definition of it?
Here is a link to a Prentice Hall book published by the Architects of the kernel thread stuff for HP:
http://www.prenhall.com/allbooks/ptr_0131900676.html
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-31-2003 01:51 AM
тАО12-31-2003 01:51 AM
Re: Thread - what is the definition of it?
user threads and
kernel threads
To implement and create kernel threads, you must have access to the appropriate privilegdes. (/etc/privgroup) - man privgrp -
For User threads, you do not. There are some major differences between HP UX 11 and 10.20 when it comes to this issue, so use the references above (posted here above) and that will answer your question in more detail
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-31-2003 04:43 PM
тАО12-31-2003 04:43 PM
Re: Thread - what is the definition of it?
Refer to this document for more information.
http://docs.hp.com/cgi-bin/fsearch/framedisplay?top=/hpux/onlinedocs/5965-4642/5965-4642_top.html&con=/hpux/onlinedocs/5965-4642/00/00/14-con.html&toc=/hpux/onlinedocs/5965-4642/00/00/14-toc.html&searchterms=is%7ca%7cthread%7cwhat&queryid=20031231-224128
HTH.
Happy New Year.
Regards,
Hemanth