Author Topic: KnightOS  (Read 230264 times)

0 Members and 1 Guest are viewing this topic.

Offline jnesselr

  • King Graphmastur
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2270
  • Rating: +81/-20
  • TAO == epic
    • View Profile
Re: KnightOS
« Reply #585 on: November 28, 2010, 09:39:16 pm »
Does this mean that a thread can be made "un-killable"? As in, some rampant thread hogging too many resources or something. In other words, is there a "force-kill" or some kind of shutoff or warning if resources get out of hand?

SirCmpwn

  • Guest
Re: KnightOS
« Reply #586 on: November 28, 2010, 09:51:28 pm »
You can always manually kill an unruly thread, don't worry.

Offline DJ Omnimaga

  • A Dream of Magic Everywhere
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55943
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: KnightOS
« Reply #587 on: November 29, 2010, 04:56:44 pm »
Question about the update: If a thread in particular happened to freeze, for example a buggy program ending up in an endless loop, would it still be possible to switch to another thread to be able to kill the one that crashed, or will we still need to use the old way and pull a battery?

SirCmpwn

  • Guest
Re: KnightOS
« Reply #588 on: November 29, 2010, 06:19:37 pm »
That's one of the great things about KnightOS.  You would be able to leave that program and kill the thread, thus saving yourself the effort of a battery pull (and any of the data you have unsaved in other programs).

Offline Munchor

  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 6199
  • Rating: +295/-121
  • Code Recycler
    • View Profile
Re: KnightOS
« Reply #589 on: November 29, 2010, 06:20:42 pm »
That's one of the great things about KnightOS.  You would be able to leave that program and kill the thread, thus saving yourself the effort of a battery pull (and any of the data you have unsaved in other programs).

I mean, not even WFRNG needs battery pulls! Cast a curse on ti-os!

SirCmpwn

  • Guest
Re: KnightOS
« Reply #590 on: November 29, 2010, 06:25:25 pm »
Well, it is admitedly hard to prevent battery pulls, TI just isn't as 1337 as us and we should not fault them for it.

Offline Munchor

  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 6199
  • Rating: +295/-121
  • Code Recycler
    • View Profile
Re: KnightOS
« Reply #591 on: November 29, 2010, 06:25:53 pm »
Well, it is admitedly hard to prevent battery pulls, TI just isn't as 1337 as us and we should not fault them for it.

Yes, we are just too good :P

Offline willrandship

  • Omnimagus of the Multi-Base.
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2953
  • Rating: +98/-13
  • Insert sugar to begin programming subroutine.
    • View Profile
Re: KnightOS
« Reply #592 on: November 29, 2010, 06:36:23 pm »
The axe version did :P It crashed my nspire bad enough to need a battery pull. It crashed outside the emu.

I would assume processes could still crash the calc if they're naughty and have too much power, though, right?

So, could a ROM of KnightOS be legally distributed? I mean, the ROM's mainly used for the OS, and since this is going to be a free OS we should be able to distribute the ROM as well, right? Or, are there other copyrighted parts of the ROM that remain?

Offline Munchor

  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 6199
  • Rating: +295/-121
  • Code Recycler
    • View Profile
Re: KnightOS
« Reply #593 on: November 29, 2010, 06:37:33 pm »
The axe version did :P It crashed my nspire bad enough to need a battery pull. It crashed outside the emu.

I would assume processes could still crash the calc if they're naughty and have too much power, though, right?

So, could a ROM of KnightOS be legally distributed? I mean, the ROM's mainly used for the OS, and since this is going to be a free OS we should be able to distribute the ROM as well, right? Or, are there other copyrighted parts of the ROM that remain?

It's going to be source code, that's all I know, so I think ROM's could be distributed :D

Offline Deep Toaster

  • So much to do, so much time, so little motivation
  • Administrator
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 8217
  • Rating: +758/-15
    • View Profile
    • ClrHome
Re: KnightOS
« Reply #594 on: November 29, 2010, 07:20:05 pm »
That's one of the great things about KnightOS.  You would be able to leave that program and kill the thread, thus saving yourself the effort of a battery pull (and any of the data you have unsaved in other programs).

Probably a stupid question, but what if it corrupts all the RAM stuff used by other threads? Or is that impossible?
« Last Edit: November 29, 2010, 07:20:39 pm by Deep Thought »




Offline calcdude84se

  • Needs Motivation
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2272
  • Rating: +78/-13
  • Wondering where their free time went...
    • View Profile
Re: KnightOS
« Reply #595 on: November 29, 2010, 08:04:54 pm »
Yeah, you're only protected from infinite loops.
RAM corruption is impossible to prevent; the nature of the z80 processor is what causes that.
"People think computers will keep them from making mistakes. They're wrong. With computers you make mistakes faster."
-Adam Osborne
Spoiler For "PartesOS links":
I'll put it online when it does something.

Offline Deep Toaster

  • So much to do, so much time, so little motivation
  • Administrator
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 8217
  • Rating: +758/-15
    • View Profile
    • ClrHome
Re: KnightOS
« Reply #596 on: November 29, 2010, 10:02:00 pm »
Oh, okay, I wasn't sure because I didn't know if having to request for 768 bytes at a time prevented this or something.




Offline calc84maniac

  • eZ80 Guru
  • Coder Of Tomorrow
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2913
  • Rating: +471/-17
    • View Profile
    • TI-Boy CE
Re: KnightOS
« Reply #597 on: November 29, 2010, 11:04:02 pm »
An infinite loop with interrupts disabled is impossible to break out of, though. Disabling interrupts will disable threading automatically, anyway
"Most people ask, 'What does a thing do?' Hackers ask, 'What can I make it do?'" - Pablos Holman

Offline DJ Omnimaga

  • A Dream of Magic Everywhere
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55943
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: KnightOS
« Reply #598 on: November 30, 2010, 04:33:18 am »
The axe version did :P It crashed my nspire bad enough to need a battery pull. It crashed outside the emu.

I would assume processes could still crash the calc if they're naughty and have too much power, though, right?

So, could a ROM of KnightOS be legally distributed? I mean, the ROM's mainly used for the OS, and since this is going to be a free OS we should be able to distribute the ROM as well, right? Or, are there other copyrighted parts of the ROM that remain?
It would, because the ROM would not contain any code from TI.

Offline JosJuice

  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1344
  • Rating: +66/-14
    • View Profile
Re: KnightOS
« Reply #599 on: November 30, 2010, 11:37:37 am »
The axe version did :P It crashed my nspire bad enough to need a battery pull. It crashed outside the emu.

I would assume processes could still crash the calc if they're naughty and have too much power, though, right?

So, could a ROM of KnightOS be legally distributed? I mean, the ROM's mainly used for the OS, and since this is going to be a free OS we should be able to distribute the ROM as well, right? Or, are there other copyrighted parts of the ROM that remain?
It would, because the ROM would not contain any code from TI.
Aren't the boot pages and such unable to be replaced?