![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Forum Rules | FAQ | Contribute | Members List | Arcade | Search | Today's Posts | Mark Forums Read |
| High Level Programming Post questions about C, C++, Java, SQL, and other programming languages here. |
|
|
||||
| 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 |
|
|
Submit Tools | LinkBack | Thread Tools | Display Modes |
|
#1
|
|||
|
|||
|
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 |
| Forum Sponsor | ||
|
|
|
#2
|
|||
|
|||
|
2. yes, you can.
you can do force convertion. In C, the any convertion is allowed, but you should guarantee the safety. |
|
#3
|
|||
|
|||
|
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. |
|||
| Google The UNIX and Linux Forums |