The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > High Level Programming
Google UNIX.COM


High Level Programming Post questions about C, C++, Java, SQL, and other programming languages here.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
POSIX Thread - Memory leak laurovalente High Level Programming 1 05-08-2008 09:26 AM
About thread programming ! iwbasts High Level Programming 0 10-19-2005 01:16 AM
Thread programming Frank2004 AIX 0 05-27-2005 03:59 AM
About Native POSIX Thread Library (NPTL) alan.zhao High Level Programming 1 05-13-2005 03:14 AM
Multi threading using posix thread library shushilmore High Level Programming 2 09-09-2002 04:12 AM

Reply
 
Submit Tools LinkBack Thread Tools Display Modes
  #1  
Old 09-20-2005
Registered User
 

Join Date: Sep 2005
Posts: 1
Cool Posix Thread Programming

Hello,

i have 2 questions:
1. Can I get the current memory usage of a thread?

2. Can I use a member-function as (void*)(*)(void*) method to create a new thread with "pthread_create(...)"??

I would be happy about any suggestion.

Regards,

Rolf
Reply With Quote
Forum Sponsor
  #2  
Old 09-29-2005
Registered User
 

Join Date: Sep 2005
Posts: 7
2. yes, you can.
you can do force convertion. In C, the any convertion is allowed, but you should guarantee the safety.
Reply With Quote
  #3  
Old 09-29-2005
...@...
 

Join Date: Feb 2004
Location: NM
Posts: 4,274
1. Not really - but read the getrusage man page for details

edit:
should have mentioned pthread_attr_getstacksize(), which gets memory allocated to the stack.

Last edited by jim mcnamara; 09-29-2005 at 09:21 AM.
Reply With Quote
Google The UNIX and Linux Forums
Reply

Thread Tools
Display Modes




All times are GMT -7. The time now is 06:19 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008. All Rights Reserved.Ad Management by RedTyger Visit The Complex Event Processing Blog

Content Relevant URLs by vBSEO 3.2.0