Search:

Type: Posts; User: brett

Page 1 of 2 1 2

Search: Search took 0.00 seconds.

  1. Thread: Saying Hello

    by brett
    Replies
    2
    Views
    2,844

    Hi there, welcome. I haven't been here in...

    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...
  2. Replies
    4
    Views
    1,149

    matsp thank you for your response. Nice to have...

    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...
  3. Replies
    4
    Views
    1,149

    Compiling whats held in an array

    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...
  4. Replies
    12
    Views
    3,495

    Response

    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...
  5. Replies
    12
    Views
    3,495

    Response

    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...
  6. Replies
    12
    Views
    3,495

    Putting other processes to sleep

    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...
  7. Replies
    8
    Views
    7,435

    Its the same process, the error is repeatable. ...

    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...
  8. Replies
    8
    Views
    7,435

    If this is the case, and I think this could be...

    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...
  9. Replies
    8
    Views
    7,435

    Thank you for your response :). Im looking...

    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,...
  10. Replies
    8
    Views
    7,435

    SIGSTOP signal being ignored - why?

    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...
  11. Replies
    3
    Views
    2,341

    Yes I can wait :) Just letting people know I'm...

    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...
  12. Replies
    3
    Views
    2,341

    Any kind of input is welcomed :)

    Any kind of input is welcomed :)
  13. Replies
    3
    Views
    2,341

    Stopping Processes Question

    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...
  14. Replies
    5
    Views
    3,516

    Many thanks to all who replied, I've got it...

    Many thanks to all who replied, I've got it working how I want now, just used SIGSTOP and SIGCONT.
  15. Replies
    5
    Views
    3,516

    So I could just enter something like: ...

    So I could just enter something like:

    kill(pid, SIGSTOP);

    ??
  16. Replies
    5
    Views
    3,516

    Kill Signal Number? - Help !

    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...
  17. Replies
    13
    Views
    1,770

    Thank you heaps :) I really appreciate that -...

    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...
  18. Replies
    13
    Views
    1,770

    Not really possible - too long. the thing is the...

    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 :)
  19. Replies
    13
    Views
    1,770

    Actually I just took all the malloc statements...

    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...
  20. Replies
    13
    Views
    1,770

    Heres the malloc declarations in the sub function...

    Heres the malloc declarations in the sub function that I beleive could be causing the problem:



    char *trueuserowners1 = malloc(200000*sizeof(char));
    char *rawresellerlist1 =...
  21. Replies
    13
    Views
    1,770

    Not sure exactly what you mean but very much...

    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...
  22. Replies
    13
    Views
    1,770

    Thanks again for your response :) I have done...

    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...
  23. Replies
    13
    Views
    1,770

    Follow Up

    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...
  24. Replies
    13
    Views
    1,770

    Really Stumped - Help :)

    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...
  25. Replies
    5
    Views
    7,418

    Yes

    Yes it WORKS :)

    THANK YOU, THANK YOU, THANK YOU.

    You are the best, I always get excellent help around these boards. Thanks a million !!!!!!!!!!!!!!!!!!!!!!!!!!
Results 1 to 25 of 31
Page 1 of 2 1 2