Article View: nl.comp.programmeren
Article #500Re: Threads in C#
From: Stefan Arentz
Date: Mon, 08 Sep 2003 20:00
Date: Mon, 08 Sep 2003 20:00
15 lines
1992 bytes
1992 bytes
"Geert M" <mvmelle@yahoo.com> writes: > In .net worden ze standaard gepooled. > Het probleem is ik doe in de threads een connection.open en een > connection.close. > Het gebeurt natuurlijk dat de ene thread de connectie opent, en de andere > thread ze een halve seconde later sluit. > Ik kan natuurlijk aparte connecties per thread, maar wat doe ik dan als ik > 10 of 20 of ... threads wil laten lopen Meestal is dat geen probleem. Vraag het je database beheerder :-) Anders moet je zelf zorgen voor exclusieve toegang tot die database connectie, maar als 20 threads 1 connectie moeten delen dan kan je rekenen op gedoe. S.
Technical Details
Message-ID:
<87y8wzm4o1.fsf@keyser.soze.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-04!sn-xit-01!sn-xit-08!supernews.com!news.tele.dk!news.tele.dk!small.news.tele.dk!newsfeed.wirehub.nl!kleenex.wirehub.nl!news.wirehub.nl!not-for-mailReferences:
<bja3q9$kfs$1@nl-news.euro.net> <3f5cdbb2$0$13870$ba620e4c@reader0.news.skynet.be> <877k4jnjvo.fsf@keyser.soze.com> <3f5cdf4e$0$9537$ba620e4c@reader1.news.skynet.be>Show Full Headers
Complete Article Headers
X-Google-Language: DUTCH,ASCII-7-bit X-Google-Thread: 107324,47a43a2247029a5f X-Google-Attributes: gid107324,public X-Google-Thread: fcea4,47a43a2247029a5f X-Google-Attributes: gidfcea4,public X-Google-ArrivalTime: 2003-09-08 13:03:46 PST Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-04!sn-xit-01!sn-xit-08!supernews.com!news.tele.dk!news.tele.dk!small.news.tele.dk!newsfeed.wirehub.nl!kleenex.wirehub.nl!news.wirehub.nl!not-for-mail From: Stefan Arentz <stefan.arentz@soze.com> Newsgroups: nl.comp.programmeren,be.comp.programming Subject: Re: Threads in C# Date: 08 Sep 2003 22:00:30 +0200 Organization: Wirehub! Internet, The Netherlands Lines: 15 Message-ID: <87y8wzm4o1.fsf@keyser.soze.com> References: <bja3q9$kfs$1@nl-news.euro.net> <3f5cdbb2$0$13870$ba620e4c@reader0.news.skynet.be> <877k4jnjvo.fsf@keyser.soze.com> <3f5cdf4e$0$9537$ba620e4c@reader1.news.skynet.be> NNTP-Posting-Host: newsreader1.wirehub.nl Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: thor.wirehub.nl 1063051421 38192 195.86.128.18 (8 Sep 2003 20:03:41 GMT) X-Complaints-To: abuse@wirehub.net NNTP-Posting-Date: 8 Sep 2003 20:03:41 GMT User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2 Cache-Post-Path: newsreader1.wirehub.nl!unknown@keyser.soze.com X-Cache: nntpcache 2.4.0b2 (see http://www.nntpcache.org/)