[jcifs] threading
Christopher R. Hertel
crh at ubiqx.mn.org
Thu Feb 20 06:58:45 EST 2003
Based on a little more information, it *may* be that there is a DNS lookup
going on. I'm not sure.
Some of the Java implementations I've seen use the native gethostbyxxx()
functions (or whatever is equivalent on the platform) which block. A
blocking system call will cause the entire Java process to block.
This is a rare problem now-a-days. Most implementors have learned to
avoid it. Still, it's worth checking.
Chris -)-----
On Wed, Feb 19, 2003 at 12:11:18PM -0500, Dan Dumont wrote:
>
> Well I have a working threading program. When I tell the threads to do
> something obnoxious like count to 4 billion, they exit like normal. Bur
> when I tell them each to open a SmbFile and list contents, they block
> until the scanning is complete or there is a connection time out. Then
> the next thread tries.
>
>
> -----Original Message-----
> From: Michael B. Allen [mailto:miallen at eskimo.com]
> Sent: Wednesday, February 19, 2003 4:54 AM
> To: Dan Dumont
> Cc: jcifs at lists.samba.org
> Subject: Re: [jcifs] threading
>
> On Wed, 19 Feb 2003 03:07:46 -0500
> Dan Dumont <dan at canofsleep.com> wrote:
>
> > I cant seem to have multiple threads each one accessing a different
> > computer's smb share work in parallel.
> >
> > Am I missing something?
>
> I think so. That's what jCIFS does best.
>
> Mike
>
> --
> A program should be written to model the concepts of the task it
> performs rather than the physical world or a process because this
> maximizes the potential for it to be applied to tasks that are
> conceptually similar and, more important, to tasks that have not
> yet been conceived.
>
>
>
--
Samba Team -- http://www.samba.org/ -)----- Christopher R. Hertel
jCIFS Team -- http://jcifs.samba.org/ -)----- ubiqx development, uninq.
ubiqx Team -- http://www.ubiqx.org/ -)----- crh at ubiqx.mn.org
OnLineBook -- http://ubiqx.org/cifs/ -)----- crh at ubiqx.org
More information about the jcifs
mailing list