Sure It's possible, It's not TRUE multithreading AND it's a hack.

If you create a child object to do the copying, and do the other part with
behaviours&stuff, then you'll have some alternatives. I've done that once,
(copying files in background while showing animation on front). The main
problem comes when you have BIG files.
As no Xtra I know of (FileXtra (not very experienced), BuddyAPI nor
MasterApp) support what you could call, "command and wait for result"
operation.
For Example BuddyAPI, when given a command to copy a file has the syntax:
CopyOperationSuccess = baCopyFile(fromfile, tofile)
and returns 1/0 when either ready or has failed, and does not allow your
lingo to proceed. Compare this to Director's net operations, where you
1# Issue a task
2# repeatedly can check for the completion of the task

This automatically sets limits to the multithreading you can do.

Basically you should not call this multithreading, as the items handled are
far larger thean threads. IMHO the word "multitasking" would be more
descriptive. Director when programmed correctly has the ability to multitask
(like it was done in the old days, by slicing up the tasks into tiny bits
and completing a part of task a, then a part of task b etc.)

As Lingo is a slow language, meaning that the amount of time for actually
"tasking" will also be a lot, you should not do MT-engines, unless you
REALLY need em.

1 cent

Pekka



> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On
> Behalf Of Miguel Gonzalez
> Sent: 26. kes�kuuta 2001 16:07
> To: [EMAIL PROTECTED]
> Subject: Re: <lingo-l> Multi tread with Lingo
>
>
> What I want is to do a few things at the same time. I know it is not
> possible at the same time, but something like this.
>
> For example, I would like copy across 1.000 files and show a
> Flash movie, an
> animation which tells to the user that the application is busy copying
> across.
>
> If I do it with Director, the Flash movie will be too, too slow,
> so I would
> like something which let me speed others actions.
>
> I have read the Jonathan e-mail and it is something I would like
> to try and
> check my movie speed.
>
> Thai's all.
>
> Thanks.
>
>
>
> ----- Original Message -----
> From: <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Tuesday, June 26, 2001 1:31 PM
> Subject: Re: <lingo-l> Multi tread with Lingo
>
>
> >
> > What do you want to multi-thread Miguel? Media playbacks, net ops, bake
> > cookies? :-P
> >
> > Regards,
> > Pranav
> > -----------------------------------------------------------
> > "Simply stated, it is sagacious to eschew obfuscation."
> > --Norman Augustine
> >
> >
> >
> > <snip>
> > What's multi-tread??  Do you mean multi-THRead?
> >
> >
> > At 01:01 PM 6/26/01 +0100, Miguel Gonzalez wrote:
> > >Hi all.
> > >
> > >Does anybody know any example about how to do something similar to a
> multi
> > >tread code?
> > >
> > >Lingo is not a multitread language, but maybe anybody knows how to do
> > >something similar.
> > <snip>
> >
> >
> >
> >
> >
> > [To remove yourself from this list, or to change to digest mode, go to
> > http://www.penworks.com/LUJ/lingo-l.cgi  To post messages to the list,
> > email [EMAIL PROTECTED]  (Problems, email [EMAIL PROTECTED])
> > Lingo-L is for learning and helping with programming Lingo.  Thanks!]
> >
> >
>
>
> [To remove yourself from this list, or to change to digest mode, go to
> http://www.penworks.com/LUJ/lingo-l.cgi  To post messages to the list,
> email [EMAIL PROTECTED]  (Problems, email [EMAIL PROTECTED])
> Lingo-L is for learning and helping with programming Lingo.  Thanks!]
>


[To remove yourself from this list, or to change to digest mode, go to
http://www.penworks.com/LUJ/lingo-l.cgi  To post messages to the list,
email [EMAIL PROTECTED]  (Problems, email [EMAIL PROTECTED])
Lingo-L is for learning and helping with programming Lingo.  Thanks!]

Reply via email to