Multi Thread FTP

Bernard Devlin bdrunrev at gmail.com
Wed Apr 8 13:07:42 EDT 2009


Hi Warren,

Revolution is single-threaded.  However, are you sure that you need
multi-threading?  I'm asking this because you can use callbacks with
various internet actions in Rev, and this kind of event-based
interactivity might be sufficient.  There's a very good presentation
by John Ousterhout (the man who designed Tcl/Tk) that puts forward a
very effective case for event-based processing instead of
multi-threaded processing (bottom line: only a small percentage of
programmers are capable of writing working multi-threaded code).

If you still need more than the event-based processing provided by
callbacks, then you could look at Mark Smith's libRevCurl.  I referred
to it a couple of days back in a discussion on the list about getting
round the fact that the POST action of Rev's internet library does not
work with callbacks.

Mark's library will make calls to the CURL executable, and such calls
will all be independent of each other and will exploit the OS capacity
for multi-processing.

Bernard

On Wed, Apr 8, 2009 at 4:33 PM,  <Warren.Kuhl at northerntool.com> wrote:
> Is it possible to create a program to do multi-thread FTP upload?  From
> what I understand about Revolution Studio, everything is single thread.
>
> Warren
>
> _______________________________________________
> use-revolution mailing list
> use-revolution at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution
>



More information about the use-livecode mailing list