0

on my linux(CentOS dis). when I create a POSIX thread by pthread,and pass a callback fucntion(thread function),in that function,I use FILE* fp = fopen(); will make the per thread's virtual memory increase to 80MB,yes,when I create 4 threads,the process's vm allocated about 320MB, I don't known what happened is it??,

Valeri Atamaniouk
  • 5,125
  • 2
  • 16
  • 18
zhou
  • 19
  • 2

0 Answers0