home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / comp / programm / 3351 < prev    next >
Encoding:
Internet Message Format  |  1992-12-22  |  2.3 KB

  1. Path: sparky!uunet!zaphod.mps.ohio-state.edu!cis.ohio-state.edu!magnus.acs.ohio-state.edu!usenet.ins.cwru.edu!slc6!trier
  2. From: trier@slc6.ins.cwru.edu (Stephen C. Trier)
  3. Newsgroups: comp.programming
  4. Subject: Re: Semaphores, Swap, or Test_And_Set
  5. Date: 22 Dec 1992 17:05:47 GMT
  6. Organization: Case Western Reserve University, Cleveland OH (USA)
  7. Lines: 33
  8. Message-ID: <1h7htbINNdg6@usenet.INS.CWRU.Edu>
  9. References: <1992Dec18.195139.15322@umbc3.umbc.edu> <1h53bpINNabh@usenet.INS.CWRU.Edu> <1992Dec22.055727.8056@nestmoi.rain.com>
  10. NNTP-Posting-Host: slc6.ins.cwru.edu
  11.  
  12. In article <1992Dec22.055727.8056@nestmoi.rain.com> jim@nestmoi.rain.com (Jim Chorn) writes:
  13. >This will only work on multiprocessors if the lock prefix is supported by
  14. >the processor. For example, if the multiprocessor system is tightly
  15. >coupled and each processor supports a coherent cache but the cache
  16. >ignores the processor lock signal this may not work.
  17.  
  18. Ah, finally!  It sounds like I've found someone who knows something about
  19. the nitty-gritty of these ghastly CPUs.
  20.  
  21. I've been trying to figure out whether that LOCK prefix is necessary when
  22. sharing the code between several virtual 8086s running on one 386.   I have
  23. been unable to get a clear answer to this question -- is the LOCK prefix
  24. useful only for multiprocessors that take advantage of it, or does it also
  25. make the instruction noninterruptible?
  26.  
  27. An answer to the effect of, "A 386 instruction is never interruptible" is
  28. OK, too -- I haven't been able to dig that sort of information out of the
  29. references I can find.  Everything provides application-level information,
  30. but none of the info I need about exactly when an interrupt or exception
  31. can take place.  It seems strange, since this information is readily avail-
  32. able for the 680[234]0.  Why isn't the 386/486 as well documented?  (Maybe
  33. I'm looking in the wrong place?)
  34.  
  35. By the way, someone sent me mail about a typo in my assembly code.  There's
  36. one point where it says, "mov bx, word ptr [bx+4]".  That should be "mov
  37. bx, word ptr [bp+4]".  It is a transcription error, my fault, and the bp
  38. version is what was in the original.
  39.  
  40. -- 
  41. Stephen Trier                      "We want to offer you a price that you
  42. Network software type               just can't afford to take advantage of."
  43. Case Western Reserve University         - Sales blurb from HSC Software
  44. trier@ins.cwru.edu
  45.