There are three may limit
1, the nature of the thread is a process, so the processes of the ulimit determines the upper limit, to me is more than 7000
2, what I use is on a, an online analysis says each process of 8 bytes in the 64 final in physical memory can be addressed to the 256 t of virtual memory, virtual memory tests to determine absolute anyway more than 4 g, I specified a few hundred m stack size is 8 m and ran out of the 4700 multiple threads, virtual memory used up after a single process can create out of dozens of thread would happen
3 the size of the stack assigned to a single thread, determines the thread in the local variables defined within occupied space such as size, originally a char buf [size] can deplete the stack, an error exit but my foundation is not solid, not malloc to heap, read the file into the stack to nature also read some 8 byte Pointers to come in, do I long
4, the size of the physical memory, multi-threaded use of physical memory, period of mistakes, unable to create a thread
Own speculation, there is no place all directions
CodePudding user response:
CodePudding user response:
CodePudding user response:
CodePudding user response:
Educated! Educated!CodePudding user response:
Educated! Educated!CodePudding user response:
Attention, learningCodePudding user response:
Attention, learningCodePudding user response:
6666666666666666CodePudding user response:
Information and porcelain theCodePudding user response:
Wow,,,,,,,CodePudding user response:
Support,,,,,,,,,CodePudding user response:
Attention, learning how to studyCodePudding user response:
Attention, learning how to studyCodePudding user response:
Attention, learning how to learnCodePudding user response:
Attention, learning how to learnCodePudding user response:
66666666666666666666666CodePudding user response:
The big bosses ahhhCodePudding user response:
The building LordThe size of the physical memory, multi-threaded use physical memory, period of mistakes, unable to create a thread
How can we know your program is running under is multi-threaded use physical memory, period of mistakes, this question should be how to debug
CodePudding user response:
Linux under the/proc is not have any process data statistics, there is a tool procmem can compile in androidCodePudding user response:
Understand, thank you very,,, very goodCodePudding user response:
Learn!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
CodePudding user response:
Learning is very good, to communicate with each other;;CodePudding user response:
Attention and studyCodePudding user response:
Thread is not a process, threads belonging to the smallest units of a process of program execution,Thread by the stack, the register and thread control table
Linux process largest number is not equal to the ulimit -u, because the system will restrict user maximum number of processes
CodePudding user response:
Although don't understand, I still to the topCodePudding user response:
Attention, learning how to studyCodePudding user response:
Look and learn, thank you requestedCodePudding user response:
CodePudding user response:
Learning how to learn,CodePudding user response:
I know, is very goodCodePudding user response:
The great god, learningCodePudding user response:
Bosses badly illCodePudding user response:
Is too great, thanks for sharing,CodePudding user response:
Attention, learningCodePudding user response:
As if is like thisCodePudding user response:
Praise a biubiubiuCodePudding user response:
2. Now 48 bit operating system is actually used virtual addresses, so the highest addressable 256 TB of virtual memory, in which the user space 128 TB (0... ~ 0007 FFFFFFFFFFF), the kernel space 128 TB (FFFF800000000000 ~ FFFFFFFFFFFFFFFF), but if you consider the virtual memory space and the relationship between the number of threads, actually they are not too big relations,CodePudding user response:
Attention, to learnCodePudding user response:
CodePudding user response:
Study, you are a great god!CodePudding user response:
The original poster very fierce, learningCodePudding user response:
Learn the goodCodePudding user response:
Very good,CodePudding user response:
Good post, learning! The building Lord hard!!!!CodePudding user response:
Said much, very goodCodePudding user response:
CodePudding user response:
Severe!!!!!!!!!!!!CodePudding user response:
Lz, share