home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / comp / windows / x / intrinsi / 691 < prev    next >
Encoding:
Text File  |  1992-12-30  |  1.9 KB  |  45 lines

  1. Newsgroups: comp.windows.x.intrinsics
  2. Path: sparky!uunet!zaphod.mps.ohio-state.edu!sdd.hp.com!spool.mu.edu!umn.edu!csus.edu!netcom.com!qualtrak
  3. From: qualtrak@netcom.com (Qual Trak)
  4. Subject: Re: Xt and CPU usage
  5. Message-ID: <1992Dec30.051935.2818@netcom.com>
  6. Organization: QualTrak Corporation
  7. References: <1992Dec29.044957.19576@llyene.jpl.nasa.gov>
  8. Date: Wed, 30 Dec 1992 05:19:35 GMT
  9. Lines: 34
  10.  
  11. In article <1992Dec29.044957.19576@llyene.jpl.nasa.gov> john@pluto.Jpl.Nasa.Gov writes:
  12. >We have developed several large Motif applications that are complete CPU
  13. >hogs and I don't know why.
  14. >
  15. >Each application has 300 to 500 XtCreateWidget() and 8 XtAppCreateShell()
  16. >calls. These calls are all made before XtAppMainLoop() is called. Widgets
  17. >are not destroyed until the application exits.
  18. >
  19. >Each application is driven by both the GUI and serialized data using
  20. >XtInputCallbackProc's.
  21. >
  22. >We run 2 to 4 application on a workstation.
  23. >
  24. >2 applications will put CPU usage of a Sparc 2 at 97%, even when
  25. >completely idle with no serialized data input and no X events (GUI input),
  26. >using X11R4, on Sun Sparc 2's with 32+ megs of memory and 20+ megs of swap.
  27. >
  28. >Can anyone tell me (1) Why? and (2) How can I fix (optimize) this?
  29. >______________________________
  30. >
  31. >John R Veregge
  32. >Jet Propulsion Laboratory
  33. >Calif Institute of Technology
  34. >john@pluto.triton.jpl.nasa.gov
  35.  
  36. I seem to remember having a program returning zero length reads on a
  37. file associated with a tty when I had added a reader proc with the
  38. XtAppAddInput () function.  The result was that the reader proc was
  39. being called each time through the XtAppMainLoop ().  Something like
  40. this could be chewing up your CPU.
  41. -----                                                              -----
  42. John Birchfield - QualTrak Corp (408) 730-2674 Home (408) 736-3852
  43. jb@QualTrak.COM
  44. -----                                                              -----
  45.