Article View: borland.public.cppbuilder.nativeapi
Article #13397Re: Multiple Threads & One Text File
From: Dennis Jones
Date: Wed, 15 Oct 2003 15:29
Date: Wed, 15 Oct 2003 15:29
31 lines
2544 bytes
2544 bytes
"Remy Lebeau (TeamB)" <gambit47.no.spam@no.spam.yahoo.com> wrote in message news:3f8cd2c3$1@newsgroups.borland.com... > > "Dennis Jones" <djones@nospam.com> wrote in message > news:3f8cc993$1@newsgroups.borland.com... > > > It's funny this thread was posted, because I need to do > > something similar, only I will have multiple PC's running > > the same application that need to synchonize access to > > a log file on a shared network drive. Any suggestions > > as to how that might be accomplished? > > Use a Client/Server model. Create a server program to run on the machine > hosting the physical file, then have the application that is running on the > other PCs each make a client connection to the server and submit their data > for logging. The server can then synchronize access to the file across the > client connections as needed. Depending on theOSs involved, you can use > RPC, DCOM, TCP/IP, named piped, etc for the model. Thanks Remy, but I was hoping to avoid writing a client/server pair (I should have mentioned this in my message, sorry). The customer is already using the basic application (what would become the "client" in a client/server pair), and my customer wants to spend as little money as possible to add this capability to the existing app, so I was looking for the simplest option...perhaps what Hans suggests will work. - Dennis
Technical Details
Message-ID:
<3f8d67d3$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-04!sn-xit-01!sn-xit-05!sn-xit-08!supernews.com!newsfeed.news2me.com!newsfeed.media.kyoto-u.ac.jp!newsfeed.icl.net!newsfeed.fjserv.net!newsfeed.freenet.de!eusc.inter.net!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<3f88f22a@newsgroups.borland.com> <3f890078$1@newsgroups.borland.com> <3f8cc993$1@newsgroups.borland.com> <3f8cd2c3$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10cc67,2cf03e35cbac1db7 X-Google-Attributes: gid10cc67,public X-Google-ArrivalTime: 2003-10-15 08:41:28 PST From: "Dennis Jones" <djones@nospam.com> Newsgroups: borland.public.cppbuilder.nativeapi References: <3f88f22a@newsgroups.borland.com> <3f890078$1@newsgroups.borland.com> <3f8cc993$1@newsgroups.borland.com> <3f8cd2c3$1@newsgroups.borland.com> Subject: Re: Multiple Threads & One Text File Date: Wed, 15 Oct 2003 08:29:23 -0700 Lines: 33 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1158 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 NNTP-Posting-Host: 204.200.27.7 Message-ID: <3f8d67d3$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1066231763 204.200.27.7 (15 Oct 2003 08:29:23 -0700) Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-04!sn-xit-01!sn-xit-05!sn-xit-08!supernews.com!newsfeed.news2me.com!newsfeed.media.kyoto-u.ac.jp!newsfeed.icl.net!newsfeed.fjserv.net!newsfeed.freenet.de!eusc.inter.net!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail