Apr 30, 2011

Scanner tutorial in java

Scanner object can be used to get inputs from keyboard in java. It is analogous to cin or scanf in C/C++. The Source code is given below. Here it will come out from the loop when you press 0. the code will wait in scanner.hasnext() function for an entry and "Enter" key.

Apr 10, 2011

Virtual memory and memory management unit

This post is incomplete. Would update later... ;)

Address space of a process can exceed physical memory using virtual memory.
I can use the addresses in the secondary memory for realisation of a memory space bigger than that is available in terms of SDRAM on the embedded system.
Multiple processes resides in main memory, each process with its own address space.
Only active code and data is actually in the memory
Another property provided through that of virtual memory is protection. One process should not interfere with another process. Because they operate in different address spaces. This we can make sure once we have implemented virtual memory. Because then we have a clear partitioning of address spaces of different processes.

For Web Developer

  open -a "Google Chrome" --args --disable-web-security