- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- porting code to HPUX IA64
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
тАО02-19-2009 08:27 AM
тАО02-19-2009 08:27 AM
porting code to HPUX IA64
I need to port this fragment of code on HPUX/IA64 but I wasn't able to find any equivalence.
The code for HP PARISC is the following
#include
#include
struct lwpinfo lwpinfo;
if (_lwp_info(&lwpinfo))
{
return -1;
}
the code for other platform is that
if (clock_gettime(CLOCK_THREAD_CPUTIME_ID, &ts) == -1)
{
perror("clock_gettime");
return -1;
}
}
Thanks in advance for any suggestion
- Tags:
- migration
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-19-2009 11:41 AM
тАО02-19-2009 11:41 AM
Re: porting code to HPUX IA64
is it that you can't find "lwp.h" or what?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-19-2009 04:32 PM - edited тАО09-04-2011 04:03 AM
тАО02-19-2009 04:32 PM - edited тАО09-04-2011 04:03 AM
Re: porting code to HP-UX IPF
Is this from Solaris?
None of the lwp functions are available to customers on HP-UX.
What does this code do? Why aren't you using pthreads?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-20-2009 02:02 AM
тАО02-20-2009 02:02 AM
Re: porting code to HPUX IA64
Does pthread lib have something that can do the job?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-20-2009 06:33 PM - edited тАО09-04-2011 04:03 AM
тАО02-20-2009 06:33 PM - edited тАО09-04-2011 04:03 AM
Re: porting code to HP-UX IPF
>the code return the amount of time spent in a thread
Well there is clock_gettime(CLOCK_VIRTUAL) but that is per process.