A web crawler script that spawns at most 500 threads and each thread basically requests for certain data served from the remote server, which each server's reply is different in content and size from others.
i'm setting stack_size as 756K's for threads
threading.stack_size(756*1024)
which enables me to have the sufficient number of t...
I was looking for a rule of thumb for allocating objects on stack or heap in C++. I have found many discussions here on SO. Many people said, it's about the lifetime of an object. If you need more lifetime than the scope of the function, put it in the heap. That makes perfect sense.
But what made me confusing is, many people said, allo...
The idea would be to help determine the optimum stack size for a given Java application.
One thing that could be done with this information create a range-table of stack sizes which the threads could modify as they exit and which could be dumped periodically and at application exit.
EDIT: This is in the context of running on customer...
does some language or platform not have a fixed size of stack and therefore not easy to overflow? I remember using C on UNIX, the stack was difficult to overflow while back in the days of Win 3.1, the stack was very easy to overflow.
...
How does one determine the current stack size of a program in linux?
it is said that the stack size of each program will be 8 MB in linux but when you use
cat /proc//mmap it shows a different size.
Also, how does one determine stack size of associated threads? Since it is said that threads have their own private stack?
...
My problem is that I want to increase the default stack size when running a Java project in Eclipse. I've tried looking for the answer, and it looks like I need to set the -Xss option to a larger number, but I don't know how to access/set this value.
I'm on a Windows machine, running Eclipse 3.6.0. How would I set this option? I guess, ...
I know how to set the stack size to unlimited in the command line:
ulimit -s unlimited
And, in bash, when I set the stack size to unlimited, my code runs and terminates successfully.
Can I set the stack size to unlimited (or some specified size) in a makefile (with g++ as the compiler)? If so, how?
Note: I can only submit my source ...
Hello, everyone!
Everywhere I keep reading about increasing the JVM stack size (i.e. to allow deeper recursions).
But I'm asking myself, would decreasing of the stack size speed up method invocation?
Probably my understanding is wrong, but I assume, that the allocation speed of each stack (not only for recursive method calls) depends ...
Is there a call to determine the stack size of a running thread? I've been looking in MSDN thread functions documentation, and can't seem to find one.
...
Dear all!
Is it possible to find out the stack size (= number of frames in the stack) in a gdb script and use it as a condition in a command list? (By gdb script I mean a list of commands that can be given to gdb as "gdb --command='gdb_script' executable")
And is it possible to have conditions within command lists? I'm looking for some...