realbasic-nug
[Top] [All Lists]

Weird thread problem under linux

To: REALbasic NUG <realbasic-nug at lists dot realsoftware dot com>
Subject: Weird thread problem under linux
From: Tomas Camin <t dot camin at gmail dot com>
Date: Mon, 31 Jul 2006 16:11:30 +0200
Delivered-to: listarchive at realsoftware dot com
Delivered-to: realbasic-nug at lists dot realsoftware dot com
Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:mime-version:content-transfer-encoding:message-id:content-type:to:from:subject:date:x-mailer; b=SYn+1x79HyQ0ibx4VDN+8/u71Pd4+3y40Dn8FKDRWQR1RG3JZz73gjwjUXAXTNd/HC+zLdXmpO95lUo76OgchukFJ2FnOdc4HD0b0owE7+VUieYVoB5TCArGlUXjHaBk/ElUI5P/lZWkq1Iiun2MpIPOJM2cXVtRpu+PiSYME/0=
I'm using RB2006r3 and I'm seen this high cpu usage when running threads, even when these don't do anything.

Create empty project
add a new thread (Class1)
in mainwindow.open:

  dim aa as Class1
  dim bb as Class1


  aa=New Class1
  bb=New Class1

  aa.run
  bb.run

Class1.run event is empty. This thread does nothing. Even thou application consumes 40% according to top.


If I run just one thread, cpu usage goes down to 0%, like this:
  dim aa as Class1


  aa=New Class1

  aa.run



Anyone else? Am I doing something wrong?

http://support.realsoftware.com/feedback/viewreport.php? reportid=rmzexdnb

Tomas
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>


<Prev in Thread] Current Thread [Next in Thread>
  • Weird thread problem under linux, Tomas Camin <=