ALT Linux Community general discussions
 help / color / mirror / Atom feed
* [Comm] pthread_create. Out of memory
@ 2007-12-06 22:50 ipx
  2007-12-07 21:04 ` Avramenko Andrew
  0 siblings, 1 reply; 4+ messages in thread
From: ipx @ 2007-12-06 22:50 UTC (permalink / raw)
  To: community


Доброго времени суток!

Не могу создать более 382 потоков в одном процессе.
Одновременно существуют 15-20 потоков, проверял. Как только общее количество потоков со старта приложения равняется 382 функция pthread_create поток не создает и сообщает "out of memory".

В ходе поиска в сети удалось выяснить, что это связано с размером стека для потока (10 Мб).

Но ведь потоки уничтожаются!!!

Поясните пожалуйста, я чего-то не понимаю.



^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2007-12-08  7:31 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-12-06 22:50 [Comm] pthread_create. Out of memory ipx
2007-12-07 21:04 ` Avramenko Andrew
2007-12-07 21:22   ` Alexey Rusakov
2007-12-08  7:31     ` Avramenko Andrew

ALT Linux Community general discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/community/0 community/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 community community/ http://lore.altlinux.org/community \
		mandrake-russian@linuxteam.iplabs.ru community@lists.altlinux.org community@lists.altlinux.ru community@lists.altlinux.com
	public-inbox-index community

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.community


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git