View Single Post
juise-'s Avatar
Posts: 186 | Thanked: 192 times | Joined on Jan 2010 @ Finland
#8
Originally Posted by Joorin View Post
Regarding your suggestion, I think it might be a little too costly to have separate processes, as in one per widget.
On Linux, a process is somewhat costly to create.

However, once it's there, it doesn't really require that much more resources than a thread would. Also, how many widgets are people going to have? 10? 50? Not a big deal, just look at the amount of processes that currently runs on your N900. (ok, some of them actually are only threads)

Also, using threads would not solve the problem, since multiple threads within single process still live under same memory address space, i.e. can still trivially screw up each other.

Originally Posted by felbutss View Post
i did some googling and my idea is not new.
Indeed it is not. Also, in general, adding hardware separation (yes, in most implementations, there is hardware involved with process separation, controlled by the OS) between software components has proven itself as a good idea over time.
__________________
Trout have underwater weapons.
 

The Following 3 Users Say Thank You to juise- For This Useful Post: