<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Multiple threads opening the same Berkeley DB in Tcl</title>
	<atom:link href="http://dossy.org/2006/07/multiple-threads-opening-the-same-berkeley-db-in-tcl/feed/" rel="self" type="application/rss+xml" />
	<link>http://dossy.org/2006/07/multiple-threads-opening-the-same-berkeley-db-in-tcl/</link>
	<description>Everything that comes out of Dossy, from the strange to the banal.</description>
	<lastBuildDate>Sat, 13 Mar 2010 03:30:11 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: tedka</title>
		<link>http://dossy.org/2006/07/multiple-threads-opening-the-same-berkeley-db-in-tcl/comment-page-1/#comment-70698</link>
		<dc:creator>tedka</dc:creator>
		<pubDate>Thu, 12 Mar 2009 00:30:27 +0000</pubDate>
		<guid isPermaLink="false">http://dossy.org/archives/000307.html#comment-70698</guid>
		<description>I have tried Berkeley DB on Windows for a week. Works well with a single thread. But when I try to use two threads reading at the same time that share a Db handle (there is no writing), I get an &quot;Invalid argument&quot; exception after approximately 5 seconds after I created threads. I open the Db handle with DB_THREADS in main thread, and then create two worker threads that use this handle, this does not help. I followed the documentation which says that this is enough and no locking or serializing access to Db handle are necessary (as well as using an environment). So now I have two options: 1) Use a single thread (which is actually not an option) 2) Throw Berkeley DB away.
Looks like yet another raw and poorly documented and poorly supported product not better than Microsoft&#039;s.</description>
		<content:encoded><![CDATA[<p>I have tried Berkeley DB on Windows for a week. Works well with a single thread. But when I try to use two threads reading at the same time that share a Db handle (there is no writing), I get an &#8220;Invalid argument&#8221; exception after approximately 5 seconds after I created threads. I open the Db handle with DB_THREADS in main thread, and then create two worker threads that use this handle, this does not help. I followed the documentation which says that this is enough and no locking or serializing access to Db handle are necessary (as well as using an environment). So now I have two options: 1) Use a single thread (which is actually not an option) 2) Throw Berkeley DB away.<br />
Looks like yet another raw and poorly documented and poorly supported product not better than Microsoft&#8217;s.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dossy</title>
		<link>http://dossy.org/2006/07/multiple-threads-opening-the-same-berkeley-db-in-tcl/comment-page-1/#comment-436</link>
		<dc:creator>Dossy</dc:creator>
		<pubDate>Mon, 16 Jun 2008 14:39:50 +0000</pubDate>
		<guid isPermaLink="false">http://dossy.org/archives/000307.html#comment-436</guid>
		<description>Sorry, Alexey - not yet.  You may want to ask for help on the AOLserver mailing list - someone else may be able to help you in the meantime.</description>
		<content:encoded><![CDATA[<p>Sorry, Alexey &#8211; not yet.  You may want to ask for help on the AOLserver mailing list &#8211; someone else may be able to help you in the meantime.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Alexey Pechnikov</title>
		<link>http://dossy.org/2006/07/multiple-threads-opening-the-same-berkeley-db-in-tcl/comment-page-1/#comment-435</link>
		<dc:creator>Alexey Pechnikov</dc:creator>
		<pubDate>Mon, 16 Jun 2008 11:40:57 +0000</pubDate>
		<guid isPermaLink="false">http://dossy.org/archives/000307.html#comment-435</guid>
		<description>Are you wrote a HOWTO on how to set up and use nsproxy? I want to try nsproxy in aolserver 4.5 on debian lenny (testing) but have no good examples.</description>
		<content:encoded><![CDATA[<p>Are you wrote a HOWTO on how to set up and use nsproxy? I want to try nsproxy in aolserver 4.5 on debian lenny (testing) but have no good examples.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Alexey Pechnikov</title>
		<link>http://dossy.org/2006/07/multiple-threads-opening-the-same-berkeley-db-in-tcl/comment-page-1/#comment-434</link>
		<dc:creator>Alexey Pechnikov</dc:creator>
		<pubDate>Thu, 07 Feb 2008 07:08:03 +0000</pubDate>
		<guid isPermaLink="false">http://dossy.org/archives/000307.html#comment-434</guid>
		<description>This HOWTO will be very usefull.</description>
		<content:encoded><![CDATA[<p>This HOWTO will be very usefull.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dossy</title>
		<link>http://dossy.org/2006/07/multiple-threads-opening-the-same-berkeley-db-in-tcl/comment-page-1/#comment-433</link>
		<dc:creator>Dossy</dc:creator>
		<pubDate>Thu, 07 Feb 2008 02:24:52 +0000</pubDate>
		<guid isPermaLink="false">http://dossy.org/archives/000307.html#comment-433</guid>
		<description>Unfortunately, there&#039;s no good example code. I would start with AOLserver 4.5 and nsproxy, and load the BDB Db_tcl module in the proxy and access it there--as proxies are single-threaded tclsh processes.

When I get a chance, I&#039;ll try to write-up a HOWTO on how to set up and use nsproxy.</description>
		<content:encoded><![CDATA[<p>Unfortunately, there&#8217;s no good example code. I would start with AOLserver 4.5 and nsproxy, and load the BDB Db_tcl module in the proxy and access it there&#8211;as proxies are single-threaded tclsh processes.</p>
<p>When I get a chance, I&#8217;ll try to write-up a HOWTO on how to set up and use nsproxy.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Alexey Pechnikov</title>
		<link>http://dossy.org/2006/07/multiple-threads-opening-the-same-berkeley-db-in-tcl/comment-page-1/#comment-432</link>
		<dc:creator>Alexey Pechnikov</dc:creator>
		<pubDate>Wed, 06 Feb 2008 23:50:33 +0000</pubDate>
		<guid isPermaLink="false">http://dossy.org/archives/000307.html#comment-432</guid>
		<description>Do exists the correct solution for use BDB in a single-threaded environment of AOL Server? I try any ideas but it&#039;s bad work. Do you use BDB with AOL?</description>
		<content:encoded><![CDATA[<p>Do exists the correct solution for use BDB in a single-threaded environment of AOL Server? I try any ideas but it&#8217;s bad work. Do you use BDB with AOL?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dossy</title>
		<link>http://dossy.org/2006/07/multiple-threads-opening-the-same-berkeley-db-in-tcl/comment-page-1/#comment-431</link>
		<dc:creator>Dossy</dc:creator>
		<pubDate>Wed, 06 Feb 2008 22:44:03 +0000</pubDate>
		<guid isPermaLink="false">http://dossy.org/archives/000307.html#comment-431</guid>
		<description>Alexey: The only solution that will be correct is to use Berkeley DB&#039;s Tcl API in a single-threaded environment, at least until the day when they rework their implementation to be properly thread-safe.</description>
		<content:encoded><![CDATA[<p>Alexey: The only solution that will be correct is to use Berkeley DB&#8217;s Tcl API in a single-threaded environment, at least until the day when they rework their implementation to be properly thread-safe.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Alexey Pechnikov</title>
		<link>http://dossy.org/2006/07/multiple-threads-opening-the-same-berkeley-db-in-tcl/comment-page-1/#comment-430</link>
		<dc:creator>Alexey Pechnikov</dc:creator>
		<pubDate>Wed, 06 Feb 2008 22:07:31 +0000</pubDate>
		<guid isPermaLink="false">http://dossy.org/archives/000307.html#comment-430</guid>
		<description>It&#039;s work from tcl library, but don&#039;t work from adp pages (or we must create threads for each adp page). Do you know a better method?</description>
		<content:encoded><![CDATA[<p>It&#8217;s work from tcl library, but don&#8217;t work from adp pages (or we must create threads for each adp page). Do you know a better method?</p>
]]></content:encoded>
	</item>
</channel>
</rss>

<!-- Dynamic Page Served (once) in 2.995 seconds -->
