[gambit-list] stop top

David St-Hilaire sthilaid at iro.umontreal.ca
Thu Sep 17 16:04:47 EDT 2009


Marc Feeley wrote:
> 
> On 17-Sep-09, at 3:38 PM, David St-Hilaire wrote:
> 
>>> How about ctrl-C?
>>>
>>> Marc
>>
>> Well I guess it works in the terminal, but not in an emacs buffer... :'(
> 
> In emacs it is ctrl-C ctrl-C .
> 
> Marc

It seems to work if there is only the primordial thread running, but after
having run:


(let loop ((i 0))
    (if (< i 30)
        (begin (thread-start!
                (make-thread
                 (lambda () (let loop2 () (thread-sleep! 0.1) (loop2)))))
               (loop (+ i 1)))))

for example, C-c C-c will not stop top from printing out the threads running.
Well anyways, thats whats happening on my laptop.

--
David



More information about the Gambit-list mailing list