Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Ruby > [new to threads] threads with UI and loop

Reply
Thread Tools

[new to threads] threads with UI and loop

 
 
Une bévue
Guest
Posts: n/a
 
      06-14-2006
i have a ruby app (RubyCocoa over MacOS X using also RubyAEOSA)
needing to use several threads.

all of the parameters are controlled by the UI


then, it's a thread apart having a empty loop when nothing to do, i call
that thread "UI_thread". This process make use of "RubyCocoa" in order
to control a cocoa interface.

apart from ui i have saying one action, saying "process" which as to be
launched every 5, 15, 30 or 60 minutes (depending from a parameter given
by the "UI_thread". This thread called "Process_control" loops to itself
after the time delay.

then a third thread called "Process" being launched by "Process_control"
independantly of "UI_thread" every time delay. This process make use of
RubyAEOSA, applescripting another application (MacSOUP)

any advices on how to organize that ?

--
une bévue
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Triple nested loop python (While loop insde of for loop inside ofwhile loop) Isaac Won Python 9 03-04-2013 10:08 AM
Re: Loop generates never-ending sockets and threads, need help debugging Maxim Yegorushkin C++ 1 02-08-2010 03:09 PM
Re: Loop generates never-ending sockets and threads, need help debugging Branimir Maksimovic C++ 5 02-07-2010 11:26 PM
TB View, Threads, Threads with unread The Invisible Man Firefox 1 03-20-2006 02:09 AM
Proposal for adding Shallow Threads and a Main Loop to Python Rhamphoryncus Python 4 03-18-2005 03:45 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57