home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / comp / sys / acorn / advocacy / 391 < prev    next >
Encoding:
Internet Message Format  |  1992-11-16  |  1.8 KB

  1. Path: sparky!uunet!pipex!warwick!uknet!acorn!steve
  2. From: steve@acorn.co.uk (Steve "daffy" Hunt)
  3. Newsgroups: comp.sys.acorn.advocacy
  4. Subject: Re: The ARM Club
  5. Message-ID: <20169@acorn.co.uk>
  6. Date: 16 Nov 92 12:29:28 GMT
  7. References: <2yL7LBj025n@khantazi.welly.gen.nz>
  8. Organization: Acorn Computers Limited, Cambridge, UK
  9. Lines: 34
  10. X-Newsreader: TIN [version 1.1 PL6]
  11.  
  12. Philip R. Banks (banksie@khantazi.welly.gen.nz) wrote:
  13. : davism@uhura.aston.ac.uk (Mik Davis) writes:
  14. : > About co-operative vs Pre-emtive multitasking...
  15. : > 
  16. : >   What would happen if someone were to try and come up with a system which had
  17. : > a RiscOS-like front end (i.e. co-operative) but which had a pre-emptive
  18. : > back-end for chucking jobs into the background or running a "batch" job?
  19. :    You get X windows basically. And I am less than impressed with the
  20. : responsiveness of X windows myself. (Very nice on the networking side 
  21.  
  22. This is not very accurate.
  23.  
  24. X servers are not co-operative.  Typical X servers are internally
  25. single-threaded and have a simple internal scheduler that handles
  26. operations from non-quiescent clients on a round-robin basis.  X
  27. protocol operations are typically atomic, but that said, there is no
  28. way for an application to "hog" the server like a RISC OS program can
  29. hog the machine.  In other words, XNextEvent is *not* the basis for
  30. scheduling (either in the X server or the client's OS) like Wimp_Poll
  31. is.
  32.  
  33. Other clients that are not actually doing X operations at a particular
  34. time still run - they aren't blocked completely just because the X
  35. server is doing something for another client.
  36.  
  37. Furthermore, there is nothing in the X protocol that forces X servers
  38. to be single-threaded and I believe that multithreaded X servers have
  39. been experimented with, and may exist on certain platforms.
  40.  
  41. -- Steve
  42. -- 
  43.                 Steve Hunt    steve@acorn.co.uk
  44.