home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / comp / os / mswindo / programm / win32 / 2042 < prev    next >
Encoding:
Text File  |  1992-11-18  |  2.2 KB  |  60 lines

  1. Newsgroups: comp.os.ms-windows.programmer.win32
  2. Path: sparky!uunet!news.univie.ac.at!chx400!aragorn.unibe.ch!news
  3. From: duling@vaxc.niehs.nih.gov
  4. Subject: re: NT Won't Install: TRAP 0E - PAGE FAULT
  5. Message-ID: <1992Nov18.230603.29211@aragorn.unibe.ch>
  6. Summary: NT console app won't share cpu !!!!
  7. Keywords: NT, multitasking, console
  8. Sender: David R. Duling
  9. Organization: University of Berne, Switzerland
  10. References: <paul.382.721920597@ace.acadiau.ca>
  11. Date: Wed, 18 Nov 1992 23:06:03 GMT
  12. Lines: 46
  13.  
  14. HEY! - has anyone out there tried to multitask with a 
  15. console mode application ?
  16.  
  17. I've found that if a Win32 console mode application is 
  18. computing WITH THE FOCUS, whether or not it is accessing 
  19. the screen io, everything else stops.  However, if a Win32 
  20. GDI application is computing with the focus, then console 
  21. mode and GDI mode applications (those in the background) 
  22. continue to compute.
  23.  
  24. What is going on here.  Microsoft, are you listening ?  
  25.  
  26. Furthermore, a Windows NT console mode program, supposedly
  27. a 32 program executing in a pre-emptive 32 bit environment,
  28. executes more slowly than a 16bit DOS compiled program in
  29. a default dos box in DOS/Windows 3.1 !  About 10% more 
  30. slowly, and that is if the Win32 app has the focus !
  31.  
  32. I very much need to know the answer to this dilemma, and
  33. if Microsoft considers this a problem and will fix it, or
  34. am I missing something here ?  We should be able to take
  35. nice ANSI C code, port it from any other OS, and with minor
  36. changes, run the character mode application in a good
  37. pre-emptive multitasking environment.
  38.  
  39. - MY SETUP:
  40.   Dell 450DE/2 - 16MB RAM, 30MB swapfile
  41.   cl386 -c -G3 -W3 -Di386=1 *.c
  42.   link -subsystem:console -entry:mainCRTSetup -out:test32.exe \
  43.         *.obj libc.lib ntdll.lib kernel32.lib
  44.  
  45.   I then run test32.exe , which is a floating point calculation 
  46. intensive program with very little screen output.  
  47.  
  48. 1. Test32.exe with focus and ~5 other Win32 GDI apps =     667 seconds
  49. 2. Test.exe with focus in DOS/Windows3.1 default dos box = 558 seconds
  50.    where test.exe is produced by the Borland C++ 3.1 compiler.
  51.  
  52. The code is identical !!
  53.  
  54. I need answers!
  55.  
  56. -- Dave Duling
  57.    Laboratory of Molecular Biophysics
  58.    National Institute of Environmental Health Sciences
  59.    
  60.