Thinking ahead: Supporting multicore CPUs
Pages: 1 ... 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 ... 26
Rick Murray (539) 13840 posts |
You mean like:
While I believe the state is held in the program’s PSP (DOS) and presumably somewhere in the runtime (Win/VB), we are still looping through reading one entry at a time with no control over when we may be swapped out for a different task. Another Windows example. The defragger will suspend itself when something writes to the disc. Because… it can’t be helped and you can’t lock the partition(s) that the OS is currently running from – that’s why the full chkdsk scan will often ask you if you want to defer until the next boot time. |
h0bby1 (2567) 480 posts |
aaaaa |
David Feugey (2125) 2709 posts |
That’s why it’s a CMT system :) |
Steve Fryatt (216) 2105 posts |
I believe that’s VB6 unless I’m very much mistaken… MS abandoned that ages ago, and IIRC I specifically wrote “.NET” because no-one sane is writing new stuff in VB6 if they’ve got a choice in the matter. I was thinking more of something like this (in C#), where we get a one-off array containing all of the files in the directory and then process them at our leisure: using System.IO; string[] files = Directory.GetFiles(DirectoryOfInterest); foreach (string file in files) { /* Do something with the file. */ } I’m sure there’s a VB.NET equivalent, but I’ll leave that as an exercise for the reader. :-) |
h0bby1 (2567) 480 posts |
aaaaa |
Rick Murray (539) 13840 posts |
What runtime does it require? I removed all .Net except 1.x from my computer because I needed the disc space and they weren’t compatible with each other. Please keep the Zap colour scheme option – some might prefer it to look like it would on RISC OS. But hey – good job! :-) 😀 |
h0bby1 (2567) 480 posts |
aaaaa |
GavinWraith (26) 1563 posts |
It still pi**e* me off that Acorn, in the middle of Cambridge, should try to show off by Latinizing and yet still get it wrong. |
Steve Pampling (1551) 8170 posts |
Maybe morio was their little jest(er) |
Rick Murray (539) 13840 posts |
Yeah, I don’t use a half-assed attempt at a language. :-P As such I can just Print to the graphic and it appears in the correct place. All the farting around with the position (OldX, OldY) is to be able to draw a rectangle background for specific text (control characters, search matches…).
Yup. There’s progress for you.
Is isn’t? Looks “odd but more or less okay” (and monospaced) here when setting the font to be Comic Sans MS – it uses the size of “X” to determine width and height. You aren’t really supposed to use OddFont mode – Courier New looks best. The end. ;-) |
Steve Pampling (1551) 8170 posts |
Can’t beat monospaced for regular alignment of columns |
h0bby1 (2567) 480 posts |
aaaaa |
h0bby1 (2567) 480 posts |
aaaaa |
Steve Pampling (1551) 8170 posts |
The formatting reads easier on the forum with the use of the “code” tag: (because of course, you really need 3 coordinate system in visual basic)
but stands out with the “pre” Private Function GetPixelsFromPoints(ByVal points As Single, ByVal dpi As Single) As Single |
Rick Murray (539) 13840 posts |
Are form dimensions still measured in twips? [reads page – oh, so that’s changed too…]
You can do both together: <pre><code> blah blah blah </code></pre> |
h0bby1 (2567) 480 posts |
aaaaa |
h0bby1 (2567) 480 posts |
aaaaa |
h0bby1 (2567) 480 posts |
aaaaa |
h0bby1 (2567) 480 posts |
aaaaa |
Rick Murray (539) 13840 posts |
How to plan to pre-empt? Ideally the wimp should handle ALL task swaps else you run the risk of either: So. Task switching. |
h0bby1 (2567) 480 posts |
aaaaa |
h0bby1 (2567) 480 posts |
aaaaa |
h0bby1 (2567) 480 posts |
aaaaa |
Gulli (1646) 42 posts |
I have a question about the emulation route that MS and Apple went. Doesn’t that require building a fully functional OS to emulate the old one on top of it? Wouldn’t that be the best way in the long run? |
h0bby1 (2567) 480 posts |
aaaaa |
Pages: 1 ... 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 ... 26