# Ruby/Tk Q

**URL:** <https://rubytalk.org/t/ruby-tk-q/4770>\
**Category:** ruby-talk\
**Created:** [17 February 2003 10:26 UTC](https://rubytalk.org/t/ruby-tk-q/4770 "2003-02-17T10:26:50Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Paul\_Argentoff](https://avatars.discourse-cdn.com/v4/letter/p/8edcca/32.png) [@Paul\_Argentoff](https://rubytalk.org/u/Paul_Argentoff)\
**Post date:** [17 February 2003 10:26 UTC](https://rubytalk.org/t/ruby-tk-q/4770/1 "2003-02-17T10:26:50Z")

</div>

Hi ppl.

I’ve noted that mainloop() consumes too much cpu. Did you note the same thing?

> **···**
>
> –  
> Yours truly, WBR, Paul Argentoff.

---

<div class="post-metadata">

**Author:** ![Hidetoshi\_NAGAI](https://avatars.discourse-cdn.com/v4/letter/h/49beb7/32.png) [@Hidetoshi\_NAGAI](https://rubytalk.org/u/Hidetoshi_NAGAI)\
**Post date:** [17 February 2003 14:11 UTC](https://rubytalk.org/t/ruby-tk-q/4770/2 "2003-02-17T14:11:38Z")

</div>

Hi,

> **···**
>
> From: Paul Argentoff [argentoff@rtelekom.ru](mailto:argentoff@rtelekom.ru)  
> Subject: Ruby/Tk Q  
> Date: Mon, 17 Feb 2003 19:26:50 +0900  
> Message-ID: [20030217102645.GA43731@paul.rtelekom.ru](mailto:20030217102645.GA43731@paul.rtelekom.ru)
> 
> > I’ve noted that mainloop() consumes too much cpu. Did you note the same thing?
> 
> ## I know. But I don’t find an idea to fix the problem yet. Please see ruby-talk-ML:56401, 59868, and mails related to them.
> 
> ```
> Hidetoshi NAGAI (nagai@ai.kyutech.ac.jp)
> 
> ```

---

<div class="post-metadata">

**Author:** ![Thomas\_A\_Reilly](https://avatars.discourse-cdn.com/v4/letter/t/f19dbf/32.png) [@Thomas\_A\_Reilly](https://rubytalk.org/u/Thomas_A_Reilly)\
**Post date:** [17 February 2003 22:56 UTC](https://rubytalk.org/t/ruby-tk-q/4770/3 "2003-02-17T22:56:29Z")

</div>

I found the same thing happening.

I had to create a thread to do what I wanted and a second for the tk  
mainloop running at a lower priority so that I could get done what I wanted  
in a reasonable amount of time.

Tom Reilly

> **···**
>
> At 07:26 PM 2/17/2003 +0900, you wrote:
> 
> > Hi ppl.
> > 
> > ## I’ve noted that mainloop() consumes too much cpu. Did you note the same thing?
> > 
> > Yours truly, WBR, Paul Argentoff.
