Messages in this thread | | | Date | Wed, 23 Jun 1999 18:44:28 +0100 (MET) | From | DAVID BALAZIC <> | Subject | Re: Some very thought-provoking ideas about OS architecture. |
| |
somebody wote :
> difference between the implementation of > > read(fd,buf,sz) > and > fd->CALL(OP_READ,buf,sz)
I might be off track here , but is the second line anyhow related to object oriented programming ?
Then the difference is mostly in the syntax , because on lower level the second line get translated to :
read_nr_32( fd , buf,sz)
The correct method/function is choosen and called with the additional "implicit" parameter , a pointer to the object. The correct function can be found at compile time or run time, when using virtual methods.
Now what I understood under sending messages in OS is :
message_type *m; m = <the contents of the message> send_message(m [ , destination ] ) ;
So the execution will not neccesarily be transfered to another piece of code. Just the message would be transfered to some mailbox.
This is ( more or less ) how AmigaOS works. For example a task sends a message to the filesystem "do this" , the message is sent and the task continues its bussiness. The filesystem , which is another task , reads the message , does something and sends a reply.
Well , just some thoughts of mine ...
-- David Balazic , student E-mail : 1stein@writeme.com | living in sLOVEnija home page: http://surf.to/stein Computer: Amiga 1200 + Quantum LPS-340AT --
- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/
| |