Hi there, welcome. I haven't been here in literally a decade. I just came back to see what's going on and thought I would welcome you.
Feel free to post and ask questions any time you want.
I...
Type: Posts; User: brett
Hi there, welcome. I haven't been here in literally a decade. I just came back to see what's going on and thought I would welcome you.
Feel free to post and ask questions any time you want.
I...
matsp thank you for your response. Nice to have someone thinking of a solution also. Please keep thinking :)
Actually I was thinking.
Could I use file locking to prevent the downloaded source...
Hi all,
I have an unusual request. Does anyone know a way to compile a C program from within another program - when the source code to compile is held in an array. In other words is there...
I have tried using nice many times now and it is completely useless. The problem is when a lot of processes want to run at once I need a way to make the time critical ones run without any noticable...
Its a Web server environment with many competing processes running.
Nice just doesn't do anything. There are a number of non-critical processes that run at regular intervals, they tend to overload...
Hi,
does anyone know how to force a process thats not the "current process" to sleep. For example I am trying to reduce the load on a server. I write a small program that forces some CPU...
Its the same process, the error is repeatable.
What about signal masking? Or could using the ptrace function be my best bet at controlling functions?
If you stop a child process can you do so...
If this is the case, and I think this could be likley, how do you stop this happening and how could I force the process to return to (or remain in) the original process group?
But one problem with...
Thank you for your response :).
Im looking into some other way of controlling server load. My true aim is to turn fast high CPU intensive processes into slow low intensive CPU processes. Nice,...
Hi,
I have a program that monitors server load and sends SIGSTOP signal to a process group via killpg(pid, SIGSTOP) to reduce load and then SIGCONT again to restart. The problem I'm having is one of...
Yes I can wait :)
Just letting people know I'm interested in all ideas and input from other.
I've just changed the usage of the kill function, before I was using kill(-pgid, SIGSTOP) to stop...
Any kind of input is welcomed :)
Hi,
I would firstly like to say a huge thank you to all of you in these forums. You have been so very helpful in the past and its just really great to have this kind of community online.
Ok...
Many thanks to all who replied, I've got it working how I want now, just used SIGSTOP and SIGCONT.
So I could just enter something like:
kill(pid, SIGSTOP);
??
Hi I'm using the following C function:
#include <signal.h>
int kill(pid_t pid, int sig);
This C function requires a signal number. I have read that these can vary from system to system. Is...
Thank you heaps :)
I really appreciate that - this is exactly what I will do tomorrow, its very late now where I live so I will be sleeping now. But thank you very much for explaing all of that, I...
Not really possible - too long. the thing is the program works fine on every other server I've tested ???? So I don't know??? Driving me nuts :)
Actually I just took all the malloc statements out of this function and went back to simple arrays. Same problem still happens....hmmm strange. Something about this server I think. How can you check...
Heres the malloc declarations in the sub function that I beleive could be causing the problem:
char *trueuserowners1 = malloc(200000*sizeof(char));
char *rawresellerlist1 =...
Not sure exactly what you mean but very much appreciate your involvement, welcome and thanks :)
The debug array declaration is:
char debug[500000]={'\x00'};
Its very large and the debug...
Thanks again for your response :)
I have done this very carefully. I have an array called 'debug', I use the following to write to the array all during the code:
strcat(debug, "End of...
Thanks for response :)
Yes I have a NULL check after the malloc declarations.
I know there is a 10MB limit for arrays in C programs. I thought the reason for using malloc was to solve this...
Hi,
I written a rather large program in C that runs on Web Servers, with probably about 50 different functions, some very long others short. For a long time all I used were arrays for opening...
Yes it WORKS :)
THANK YOU, THANK YOU, THANK YOU.
You are the best, I always get excellent help around these boards. Thanks a million !!!!!!!!!!!!!!!!!!!!!!!!!!