🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: pl.comp.lang.c
Article #309604

Re: future i threads pools

#309604
From: Borneq
Date: Fri, 12 Jan 2018 21:44
10 lines
1476 bytes
W dniu 12.01.2018 o 17:34, bartekltg pisze:
> W wielkim skrócie, odpalenie funkcji tworzy graf zależności (wykrzystując
> m.in future) a potem jest od odpalany - jak dobrze pojdzie*) praktycznie
> nie ma sytuacji, że masz nieobsadzone rdzenie.

Future jest jakby wydajniejsze od zwykłych wątków? jeśli chodzi o 
rdzenie, bo jest jeszcze to że jak rozumiem możliwość bycia lżejszym, 
ale to już thread pools:
"Z grubsza nowy watek wymaga allokacji stosu i kontekstu cpu. W 
przypadku thread poola to już jest gotowe."
Technical Details
Message-ID: <p3ba8b$3ak$2@node2.news.atman.pl>
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news.icm.edu.pl!newsfeed2.atman.pl!newsfeed.atman.pl!.POSTED!not-for-mail
References: <p3alhe$9nn$1@node1.news.atman.pl> <6d7bbe96-f0ff-4a58-9cd0-302fdba2b359@googlegroups.com>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news.icm.edu.pl!newsfeed2.atman.pl!newsfeed.atman.pl!.POSTED!not-for-mail
From: Borneq <borneq@antyspam.hidden.pl>
Newsgroups: pl.comp.lang.c
Subject: Re: future i threads pools
Date: Fri, 12 Jan 2018 22:44:43 +0100
Organization: ATMAN - ATM S.A.
Lines: 10
Message-ID: <p3ba8b$3ak$2@node2.news.atman.pl>
References: <p3alhe$9nn$1@node1.news.atman.pl> <6d7bbe96-f0ff-4a58-9cd0-302fdba2b359@googlegroups.com>
NNTP-Posting-Host: public-gprs351359.centertel.pl
Mime-Version: 1.0
X-Trace: node2.news.atman.pl 1515793483 3412 37.47.3.192 (12 Jan 2018 21:44:43 GMT)
X-Complaints-To: usenet@atman.pl
NNTP-Posting-Date: Fri, 12 Jan 2018 21:44:43 +0000 (UTC)
User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.5.2
In-Reply-To: <6d7bbe96-f0ff-4a58-9cd0-302fdba2b359@googlegroups.com>
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit