Find the answer to your Linux question:
Results 1 to 1 of 1
Please find my system configuration below $ ulimit -a core file size (blocks, -c) unlimited data seg size (kbytes, -d) unlimited file size (blocks, -f) unlimited max locked memory (kbytes, ...
  1. #1
    Just Joined!
    Join Date
    Jul 2009
    Posts
    1

    How to create more threads with out decreasing the STACK SIZE for each Process?

    Please find my system configuration below



    $ ulimit -a

    core file size (blocks, -c) unlimited

    data seg size (kbytes, -d) unlimited

    file size (blocks, -f) unlimited

    max locked memory (kbytes, -l) 4

    max memory size (kbytes, -m) unlimited

    open files (-n) 1024

    pipe size (512 bytes, -p) 8

    stack size (kbytes, -s) 10240

    cpu time (seconds, -t) unlimited

    max user processes (-u) 7168

    virtual memory (kbytes, -v) unlimited



    $ uname -a

    Linux instaroamd 2.4.21-4.ELsmp #1 SMP Fri Oct 3 17:52:56 EDT 2003 i686 i686 i386 GNU/Linux


    With the above configuration I am able to create 305 threads in each process. When I decrease the stack size (kbytes, -s) 10240 to (kbytes, -s) 4240 I able to create more than 600 threads. But with out decreasing stack size how can I create more thread in each process?

    Please provide solution.

    Thanks regards
    hariedu
    Last edited by hariedu; 07-10-2009 at 05:36 AM. Reason: a

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...