Search Results

Search: Posts Made By: mrhosseini
Forum: Programming 03-01-2010
6,419
Posted By mrhosseini
thanks Corona688 and Loic Domaigne, the...
thanks Corona688 and Loic Domaigne,
the volatile solved my problem.
Forum: Programming 02-23-2010
6,419
Posted By mrhosseini
thanks, yes, that was just an example...
thanks,


yes, that was just an example that i used to test the threads behavior.

so the mutexes and any other data that i want to be shared must be defined as volatile, am i right?
Forum: Programming 02-22-2010
6,419
Posted By mrhosseini
i have tried this simple code and didn't get...
i have tried this simple code and didn't get answer:

int lock =0;

void* thread1(){
while(lock);

//some actions ....

lock =1;
return 0;
}

void* thread2(){
while(!lock);
...
Forum: Programming 02-21-2010
6,419
Posted By mrhosseini
Multi thread data sharing problem in uclinux
hello,
I have wrote a multi thread application to run under uclinux.
the problem is that threads does not share data. using the ps command it shows a single process for each thread.

I test the...
2,876
Posted By mrhosseini
oh! sorry! I was incorrect. UID's are different....
oh! sorry! I was incorrect. UID's are different. But the problem is that now we just have the user names not UID's (because we store users info in a ldap server). how can we get UID's from user names...
2,876
Posted By mrhosseini
unfortunately UID's are the same
unfortunately UID's are the same
2,876
Posted By mrhosseini
our server is CentOS 5.02
our server is CentOS 5.02
2,876
Posted By mrhosseini
integer user names and user quotas!
hello,
i want to implements user quotas. the problem is that all of our user names are integer numbers, like 8510453.

so when i set quota for a user (e.g. 8510453), it wont be set for that user...
Forum: Programming 07-22-2008
3,496
Posted By mrhosseini
sorry! but I think the program again has to...
sorry! but I think the program again has to always wait for a change
Forum: Programming 07-22-2008
3,496
Posted By mrhosseini
the service has to send a message to a server and...
the service has to send a message to a server and one part of the message is that if any body logged in or out.
Forum: Programming 07-22-2008
3,496
Posted By mrhosseini
thanks, but i think this can't be useful.i think...
thanks, but i think this can't be useful.i think i did not describe the problem correctly. the service should do an action when user logged in and another when user logged out.
Forum: Programming 07-22-2008
3,496
Posted By mrhosseini
logged in or logged out?
I have wrote a service with c++ which is always run and now I want to get with it the exact time in that the user log in or log out and then run a script. but the problem is that how could i find...
Showing results 1 to 12 of 12

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