From: Avramenko Andrew <liksx@mail.ru>
To: ALT Linux Community general discussions <community@lists.altlinux.org>
Subject: Re: [Comm] pthread_create. Out of memory
Date: Sat, 08 Dec 2007 00:04:36 +0300
Message-ID: <4759B564.6000106@mail.ru> (raw)
In-Reply-To: <E1J0PY4-0006Nu-00.ip25452-list-ru@f151.mail.ru>
ipx пишет:
> Доброго времени суток!
>
> Не могу создать более 382 потоков в одном процессе.
> Одновременно существуют 15-20 потоков, проверял. Как только общее количество потоков со старта приложения равняется 382 функция pthread_create поток не создает и сообщает "out of memory".
>
> В ходе поиска в сети удалось выяснить, что это связано с размером стека для потока (10 Мб).
>
> Но ведь потоки уничтожаются!!!
>
> Поясните пожалуйста, я чего-то не понимаю.
Ну да. Сталкивались с таким, кто-то у нас спрашивал.
Куда они уничтожаются? Они не одновременно работают?
next prev parent reply other threads:[~2007-12-07 21:04 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-12-06 22:50 ipx
2007-12-07 21:04 ` Avramenko Andrew [this message]
2007-12-07 21:22 ` Alexey Rusakov
2007-12-08 7:31 ` Avramenko Andrew
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4759B564.6000106@mail.ru \
--to=liksx@mail.ru \
--cc=community@lists.altlinux.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
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