Re: End of the Free Lunch of Hardware
From: Percival (dragontamer5788_at_yahoo.com)
Date: 03/11/05
- Next message: '\\\\o//'annabee: "Re: End of the Free Lunch of Hardware"
- Previous message: '\\\\o//'annabee: "Re: End of the Free Lunch of Hardware"
- In reply to: '\\\\o//'annabee: "Re: End of the Free Lunch of Hardware"
- Next in thread: '\\\\o//'annabee: "Re: End of the Free Lunch of Hardware"
- Reply: '\\\\o//'annabee: "Re: End of the Free Lunch of Hardware"
- Reply: NoDot: "Re: End of the Free Lunch of Hardware"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Thu, 10 Mar 2005 23:23:13 -0500
On Fri, 11 Mar 2005 04:34:11 +0100, '\\o//'annabee wrote:
>> I'm suggesting that the
>> "functional" programming languages will have a rebirth from this, as
>> functional languages are 100% thread safe (if they a "pure" functional
>> language, like Haskell)
>
> At some place they must exchange data. So thats sound like just another
> sweet dream.
No destructive updates in the pure functions :) No, inc eax, cause that
means eax increases, and once a value is set, it can't be changed.
Continuous reads won't cause deadlocks.
(yeah, I guess thats what makes Haskell slow... Very slow) Who knows? Bah,
we all know, HLL waste your time and energy :) Still, some interesting
concepts I've learned in my short time with the language. I think its a
good thing to learn other computer languages and see the world of
programming from that perspective, you always learn a different way to
program when your current way is no longer supported.
> Its also possible to create multitasking without threads. This is actually
> the better way, in some cases, when dealing with only one processor.
> Create the logic such that everything can respond to TICKS. You devide a
> task into x ticks. And then you're doing a loop over all the objects,
> ticking each one. Each tick performs only a small piece of work before
> returning. Yet everything is serialized. This is a sort of userdefined
> threads, and they are seriously faster running the window threads.
Thats not multitasking, and that won't take advantage of multiple CPUs
that will come in the future. That is asynchronous I/O. This is definitely
faster on a single CPU, as all that extra synchronization stuff is taken
care of manually. But when you have 2 threads and 2 CPUs, you should use
"true threads" so they run on both CPUs.
> When having more than one processor or hyperthreads, create two or more
> TREEES of task, that can all be performed with TICKS. Assign each TREE to
> a processor, or Thread.
Hmm... I probably should start up learning concurent programming. Even if
multi-core CPUs aren't the future, at least I've learned threads and all
that stuff.
Percival
- Next message: '\\\\o//'annabee: "Re: End of the Free Lunch of Hardware"
- Previous message: '\\\\o//'annabee: "Re: End of the Free Lunch of Hardware"
- In reply to: '\\\\o//'annabee: "Re: End of the Free Lunch of Hardware"
- Next in thread: '\\\\o//'annabee: "Re: End of the Free Lunch of Hardware"
- Reply: '\\\\o//'annabee: "Re: End of the Free Lunch of Hardware"
- Reply: NoDot: "Re: End of the Free Lunch of Hardware"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|