Search Results

Search: Posts Made By: JEscola
Forum: Programming 05-09-2009
13,018
Posted By JEscola
Is Linux, The problem is that the reserved memory...
Is Linux, The problem is that the reserved memory is growing in every new thread that is opened and is not liberated.
Forum: Programming 05-08-2009
13,018
Posted By JEscola
This simple sample.. have a memory leak.. why??? ...
This simple sample.. have a memory leak.. why???

Why does reserved memory grow stillafter having liberated the threads?? .. should not it be able only like before having created them?

Begin...
Forum: Programming 05-07-2009
13,018
Posted By JEscola
Running the source before creating ...
Running the source before creating

0000000000400000 4K r-x-- /home/CSources/samples/thread1
0000000000600000 4K rw--- /home/CSources/samples/thread1
0000003602200000 112K r-x-- ...
Forum: Programming 05-07-2009
13,018
Posted By JEscola
Memory before create threads VIRT:13556 RES:...
Memory before create threads
VIRT:13556 RES: 964
Memory with pthreads create
VIRT:4649m RES:5956
Memory After thread_detach... in while(true) looping
VIRT: 4270m RES:4416

My problem is...
Forum: Programming 05-07-2009
13,018
Posted By JEscola
I see the memory usage Before create...
I see the memory usage
Before create threads... and after detach all threads in the
"while(true)
{}" is runnig...in this point the memory will be free

There are only one attr pointer... and...
Forum: Programming 05-07-2009
13,018
Posted By JEscola
Memory LEAK with pthreads
I have this code...

#include <stdio.h>
#include <iostream>
#include <pthread.h>
static void* cliente(void *datos);

int main()
{
pthread_attr_t tattr;
int ret;
...
Forum: Programming 08-12-2008
4,258
Posted By JEscola
API C MYSQL vs lock table ???
(sorry for my english)

Hi, i have an app that uses MYSQL API C.. i trying do a timeout until the table is locked by an other thread , in the docs of Mysql i can see that MYSQL_OPT_READ_TIMEOUT is...
Forum: Programming 08-08-2008
10,575
Posted By JEscola
the same results.... You can try to execute the...
the same results....
You can try to execute the code??...
If you do it, you will be able to see as the virtual memory(report) it is reserved and is not liberated when they finish all the threads
Forum: Programming 08-07-2008
10,575
Posted By JEscola
yes, detach is inside client procedure.. ...
yes, detach is inside client procedure..

static void* cliente(void *datos)
{
int id=pthread_self();
char *buff=(char *)malloc(100000);
sleep(15);
free(buff);
...
Forum: Programming 08-07-2008
10,575
Posted By JEscola
Yes, i try to put ...
Yes, i try to put pthread_detach(pthread_self()); before the call pthread_exit() but the result is the same... allways the virtual memory is over 200 Mb.... only is liberated aprox 30 Mb.
Forum: Programming 08-06-2008
10,575
Posted By JEscola
yes this is correct.. but i was waiting that...
yes this is correct.. but i was waiting that using free before calling to pthread_exit all allocated memory was liberated, and is liberated aprox 30 Mb. (allocated by malloc) but not the rest. !?
Forum: Programming 08-06-2008
10,575
Posted By JEscola
Problem with POSIX pthreads and virtual memory
Hi, i have this code... in order to test my problem...

#include <stdio.h>
#include <iostream>
#include <pthread.h>
static void* cliente(void *datos);

int main()
{
pthread_attr_t...
Showing results 1 to 12 of 12

 
All times are GMT -4. The time now is 11:39 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy