- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: porting code to HPUX IA64
Categories
Company
Local Language
Forums
Discussions
- Integrity Servers
- Server Clustering
- HPE NonStop Compute
- HPE Apollo Systems
- High Performance Computing
Knowledge Base
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Knowledge Base
Forums
Discussions
- Cloud Mentoring and Education
- Software - General
- HPE OneView
- HPE Ezmeral Software platform
- HPE OpsRamp Software
Knowledge Base
Discussions
Forums
Discussions
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
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.