Home > OS >  Linux maximum number of threads is analyzed
Linux maximum number of threads is analyzed

Time:11-21

This two days have been the problem, now want to see
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, learning

CodePudding user response:

Attention, learning

CodePudding user response:

6666666666666666

CodePudding user response:

Information and porcelain the

CodePudding user response:

Wow,,,,,,,

CodePudding user response:

Support,,,,,,,,,

CodePudding user response:

Attention, learning how to study

CodePudding user response:

Attention, learning how to study

CodePudding user response:

Attention, learning how to learn

CodePudding user response:

Attention, learning how to learn

CodePudding user response:

66666666666666666666666

CodePudding user response:

The big bosses ahhh

CodePudding user response:

The building Lord
The 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 android

CodePudding user response:

Understand, thank you very,,, very good

CodePudding user response:


Learn!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

CodePudding user response:

Learning is very good, to communicate with each other;;

CodePudding user response:

Attention and study

CodePudding 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 top

CodePudding user response:

Attention, learning how to study

CodePudding user response:

Look and learn, thank you requested

CodePudding user response:

CodePudding user response:

Learning how to learn,

CodePudding user response:

I know, is very good

CodePudding user response:

The great god, learning

CodePudding user response:

Bosses badly ill

CodePudding user response:

Is too great, thanks for sharing,

CodePudding user response:

Attention, learning

CodePudding user response:

As if is like this

CodePudding user response:

Praise a biubiubiu

CodePudding 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 learn

CodePudding user response:

CodePudding user response:

Study, you are a great god!

CodePudding user response:

The original poster very fierce, learning

CodePudding user response:

Learn the good

CodePudding user response:

Very good,

CodePudding user response:

Good post, learning! The building Lord hard!!!!

CodePudding user response:

Said much, very good

CodePudding user response:

CodePudding user response:

Severe!!!!!!!!!!!!

CodePudding user response:

Lz, share
  • Related