Tuesday, October 25, 2016

Nibble 3 for Operating Systems and Architecture

Q: Explain why Java programs running on Android systems do not use the standard Java API and virtual machine.

A: The standard Java API and virtual machine are designed for desktop and server systems, not mobile devices. Google developed a separate API and virtual machine for mobile devices. I.e. The Dalvik vm, which is optimised for mobile devices with limited memory and CPU processing capabilities.

Saturday, October 22, 2016

Nibble 2 for Operating Systems and Architecture

Q: How do clustered systems differ from multiprocessor systems? 
What is required for 2 machines belonging to a cluster to cooperate to provide a highly available service?

A: Clustered systems are typically constructed by combining multiple computers into a single system to perform a computational task distributed across the cluster.
Multiprocessor systems on the other hand could be a single entity comprising of multiple CPUs.
A clustered system is less tightly coupled than a multiprocessor system. 
Clustered systems communicate using messages, while processors in a multiprocessor system communicate using shared memory. 
In order for 2 machines to provide a highly available service, the state on the two machines should be replicated and should be consistently updated. When one of the machines fails, the other could then take over the functionality of the failed machine.

Nibble 1 for Operating Systems and Architecture

Q: A password may become known to others in a variety of ways. Is there a simple method for detecting that such an event has occurred?

A: Whenever a user logs in, the system prints the last time that user was logged in to the system.

3D models