<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://homeostasis.scs.carleton.ca/wiki/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Slay</id>
	<title>Soma-notes - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://homeostasis.scs.carleton.ca/wiki/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Slay"/>
	<link rel="alternate" type="text/html" href="https://homeostasis.scs.carleton.ca/wiki/index.php/Special:Contributions/Slay"/>
	<updated>2026-06-02T22:27:42Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.42.1</generator>
	<entry>
		<id>https://homeostasis.scs.carleton.ca/wiki/index.php?title=COMP_3000_Essay_2_2010_Question_7&amp;diff=5971</id>
		<title>COMP 3000 Essay 2 2010 Question 7</title>
		<link rel="alternate" type="text/html" href="https://homeostasis.scs.carleton.ca/wiki/index.php?title=COMP_3000_Essay_2_2010_Question_7&amp;diff=5971"/>
		<updated>2010-12-01T19:04:53Z</updated>

		<summary type="html">&lt;p&gt;Slay: /* Findings */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Paper==&lt;br /&gt;
===[http://homeostasis.scs.carleton.ca/wiki/index.php/COMP_3000_Essay_2_2010_Question_7 Ad Hoc Synchronization Considered Harmful]===&lt;br /&gt;
Weiwei Xiong&lt;br /&gt;
University of California, San Diego&lt;br /&gt;
&lt;br /&gt;
Soyeon Park, Jiaqi Zhang, Yuanyuan Zhou&lt;br /&gt;
University of Illinois at Urbana-Champaign&lt;br /&gt;
&lt;br /&gt;
Zhiqiang Ma&lt;br /&gt;
Intel&lt;br /&gt;
&lt;br /&gt;
==Research Problem==&lt;br /&gt;
As the computer industry continues to shift towards multicore processors, concurrent programming and the use of multithreaded designs has increased to keep up with this growing trend. Multithreaded applications can be found in a variety of popular applications today as they take advantage of the multithreaded approach. However, the concepts behind concurrent programming bring with them a host of potential dangers in the form of race conditions and deadlocks resulting from bad programming design and threads accessing shared memory. Fortunately, there are well known and standard methods for dealing with these problems, i.e synchronization primitives. But in real world situations, due to a variety of reasons, as we shall see, programmers often implement their own &amp;quot;ad hoc&amp;quot; synchronizations that eschew common design standards. Ad hoc synchronizations are not well documented and are not discovered by traditional tools for race conditions that look for standard synchronization primitives.&lt;br /&gt;
&lt;br /&gt;
The paper we are discussing addresses these concerns in two regards, first it details a thorough study of ad hoc synchronizations. It details their nature, dangers, impact on bug detection tools and prevalence in several major open-source applications. Secondly, it introduces SyncFinder, a program that detects all ad hoc synchronizations and automatically annotates the source code where ad hoc sychnronizations are found. This can see use in conjunction with other data race checkers to improve accuracy and to build custom tools for finding deadlocks and bad programming practices. &lt;br /&gt;
&lt;br /&gt;
With detailed analysis of ad hoc synchronization and study of their occurrences in several applications, the research ultimately concludes that they are harmful and should be removed. At the same time, SyncFinder detects and documents ad hoc synchronizations in the source code enabling programmers for the first time to easily track and remove them.&lt;br /&gt;
&lt;br /&gt;
==Background Concepts==&lt;br /&gt;
&lt;br /&gt;
===Concurrent Programming===&lt;br /&gt;
Concurrent programming is a style of programming where multiple threads of execution run concurrently to perform a single task.  The thread of execution share a number of resources.  Particularly in multi-core processor system and in distributed environment this style of programming can result in significant performance gains.  One significant challenge of concurrent programming is coordinating the different threads of execution, this is usually done using synchronization primitives.&lt;br /&gt;
&lt;br /&gt;
===Synchronization Primitives===&lt;br /&gt;
Synchronization primitives represent some of the basic tools offered by the system containing the concurrent program to facilitate coordination between of threads of execution.  They are generally used to synchronize between threads, and to protect shared resource&amp;lt;sup&amp;gt;[[#Foot8|8]]&amp;lt;/sup&amp;gt;.&lt;br /&gt;
Some type of synchronization primitives common to many are locks, mutexes, semaphores, and monitors.&lt;br /&gt;
Locks are really a superset of synchronization primitives since mutexes, semaphores, and monitors are all locks.  Additionally there are read/write locks that only lock when a reader obtains the lock.  Latches a type of lock that unlocks when a specified number of threads have obtained it which is very useful in facilitate threads all getting to known state, there are a myriad of other locks. &lt;br /&gt;
Mutexes are mutually exclusive locks that threads employ to lock a resource that they need preventing other.  No other threads can access them at that point. Once they are finished, they release the lock and the other threads can then lock and access the resource.&lt;br /&gt;
Monitors are a type of mutex that contain a condition variables which is a variable that if not true, releases the lock and blocks the thread until the certain condition is met, by another thread changing value of the variable. This allows the original thread to only continue execute when it is safe to perform its operation.&lt;br /&gt;
Synchronization primitives can be misused and lead to a host of other problems generally referred to collectively as race conditions.&lt;br /&gt;
===Race conditions, deadlocks===&lt;br /&gt;
Race conditions are an unintended side-effects of programming in concurrent systems, they occur when two or more processes have access to a shared resource and at least one of them have write privilege. This leads to processes modifying the data that all processes share as other may be reading them and results in the reading of stale/incorrect data. They will occur during the execution of the program and often times very difficult to detect or manipulate data in subtle ways. &lt;br /&gt;
&lt;br /&gt;
Deadlock is when two or more processes share a resource and each process is waiting on the other processes to unlock the resource. It becomes a circular chain and no process can continue.&lt;br /&gt;
&lt;br /&gt;
Both these issues occur in concurrent programming and although there are no general solutions for deadlock&amp;lt;sup&amp;gt;[[#Foot9|9]]&amp;lt;/sup&amp;gt;, there are suitable methods for dealing with them, and in the case of race conditions, using mutual exclusion locks and synchronization primitives can prevent race conditions. But no programmer is infallible and so there is always the issue of race conditions and deadlocks present in production code.&lt;br /&gt;
===Ad Hoc Synchronization===&lt;br /&gt;
Ad hoc synchronizations are loops called sync loops that continue until certain conditions are met via outside variables called sync variables. They are designed to control the flow of thread execution much like locking and unlocking of resources. There can be multiple sync variables in a sync loop and they can have multiple exit conditions and dependencies. The diversity of the sync loops, their dependencies and execution paths leads to difficulty in finding them.&lt;br /&gt;
&lt;br /&gt;
==Contribution==&lt;br /&gt;
&lt;br /&gt;
With concurrent programming commonly used in modern applications, we face many issues that result from having simultaneous execution. In order to maintain a concurrent system, synchronization is required to ensure that the executing tasks do not interfere with each other avoiding potential race conditions. However, many programmers do not use proper synchronization primitives to deal with these issues. Rather, they implement synchronizations in an ad hoc fashion.  The paper we are discussing shows that ad hoc synchronizations, though implemented as a solution to concurrency issues, are indeed undesirable in a system. This paper details the characteristics of ad hoc synchronizations and the issues associated with this programming construct and introduces the program, SyncFinder, which is used to identify such synchronizations in code.&lt;br /&gt;
&lt;br /&gt;
===Findings===&lt;br /&gt;
&lt;br /&gt;
In order to identify the characteristics of ad hoc synchronizations, 12 mainstream programs were examined to find instances of ad hoc synchronizations. These programs were either of server, desktop or scientific type, including Apache, MySQL and Mozilla. Through manual inspection of the source code, these characteristics of ad hoc synchronizations were found.&lt;br /&gt;
&lt;br /&gt;
1. In all programs studied, it was found that each had numerous ad hoc synchronizations implemented. The number of synchronizations found ranged from 6-83, with server type programs inhabiting the higher portion of the interval. It is likely that programmers use this type of synchronization for two reasons. &lt;br /&gt;
* In order to ensure a certain order of execution in the case of a concurrent system, programmers will use ad hoc synchronization to superimpose this order. With traditional synchronization techniques, this can vary between systems. As the order can vary, it is difficult to create a common interface.&lt;br /&gt;
* Some synchronization techniques introduce heavy-weight synchronization primitives. As such, programmers will use ad hoc synchronizations to avoid this and supposedly protect performance.&lt;br /&gt;
&lt;br /&gt;
2. Often, it is very hard to identify an ad hoc loop as a synchronization method. They are hard to distinguish from other computational loops and as the implementations are diverse, it is hard to pinpoint them from the code. This makes the system hard to maintain, as other programmers will not be able to identify ad hoc loops implemented by another and debugging programs cannot recognize them as issues. &lt;br /&gt;
&lt;br /&gt;
3. It was found that ad hoc synchronizations often introduce bugs into the system such as deadlocks or hangs. As these are different than those caused by locks and other synchronizations it is hard for detection tools to recognize them if they were not first identified either manually or automatically. &lt;br /&gt;
&lt;br /&gt;
4. As they are not easily recognizable, it is hard for bug detection tools to fix issues presented by ad hoc synchronizations. In fact, it is often the case that these tools either do not find these issues or report them as false positives as the tool is unaware of the &amp;quot;work arounds&amp;quot; put into affect by using ad hoc synchronization. Since they cannot find these problems, it severely impacts the effectiveness of such tools.&lt;br /&gt;
This also impacts analysis of performance. Synchronization is quite costly and if a tool cannot recognize the formm of synchronization, a false report is generated and the programmer will not be aware. This may cause poor decisions on the part of the programmer just from the fact that ad hoc synchronizations are hard to identify.&lt;br /&gt;
&lt;br /&gt;
5. The reason ad hoc synchronizations are hard to identify stems from the fact that there is no single way of implementing it. The ways in which ad hoc synchronizations are done are quite diverse and so it is hard to identify just on a few criteria. Some typical characteristics of an ad hoc synchronization follow.&lt;br /&gt;
* These loops can contain one or multiple exit conditions. Some or all of these exit conditions may be satisfied by remote threads while others may be satisfied locally.&lt;br /&gt;
* Often, exit conditions depend on sync variables, variables that are shared with other tasks&lt;br /&gt;
* In some cases, the synchronization does not wait idly and rather performs other computations while checking the sync variable periodically&lt;br /&gt;
&lt;br /&gt;
Despite the dangers of using ad hoc synchronization, programmers continue to use this method. It is found that, in comments, programmers have stated that possibly their implementations are unsafe but proceed to use ad hoc synchronization techniques. The reasoning behind these decisions have already been outlined in point 1. A better practice of synchronization would be to replace ad hoc synchronizations with synchronization primitives, primitives already present in standard POSIX thread libraries. However, it is often difficult to replace ad hoc synchronizations with synchronization primitives and doing this may not fulfill the concerns presented in point 1.&lt;br /&gt;
&lt;br /&gt;
===SyncFinder===&lt;br /&gt;
SyncFinder is a tool built and designed by the authors of the paper for the purpose of identifying and annotating instances of ad hoc synchronization in concurrent programs built in C or C++.  The main goal of this was to aid programmers in better structuring their code, while simultaneously allowing for other tools to be utilized, recognizing them as synchronizations. It has demonstrated itself to be very effective in this area where other similar tools have failed, as it analyzes the code in a unique way that specifically tracks down sync loops that implement ad hoc synchronization.&lt;br /&gt;
 &lt;br /&gt;
====How it works====&lt;br /&gt;
There are two possibilities to consider when searching for ad hoc synchronizations.  You can either analyze runtime traces via a dynamic method, or analyze the source code in a static method.  Both methods carry with them a number of pros and cons.  While a dynamic process is generally more accurate than a static method, it tends to accrue a very large runtime overhead.  In addition to this, the dynamic method is somewhat limited in which ad hoc synchronizations it can find by the code coverage of the test cases.  Taking these factors into consideration, the authors of the paper opted to pursue a static solution for achieving the goals set out for SyncFinder.  SyncFinder uses the LLVM compiler infrastructure.&lt;br /&gt;
 &lt;br /&gt;
1. Find Loops&lt;br /&gt;
&lt;br /&gt;
An important commonality between all ad hoc synchronizations is that they are all caused by loops, be they “for”, “while” or “go to” loops.  These are generally referred to as &amp;quot;sync loops&amp;quot;.  The first step in identifying sync loops is  The LLVM infrastructure is used to obtain the loop info from the source including a representation of the exit conditions.&lt;br /&gt;
&lt;br /&gt;
2. Identify Sync Loops&lt;br /&gt;
&lt;br /&gt;
The next and most important step is to differentiate between sync loops used for ad hoc synchronization and regular computational loops. It does this by going through the following steps:&lt;br /&gt;
* Exit Dependent Variable (EDV) Analysis: EDVs are variables that affect the exit conditions of a loop. A sync variable is a variable related to the synchronization of concurrent programs. Therefore, by identifying any EDVs as sync variables, it can be concluded that the loop is a sync loop. &lt;br /&gt;
* Pruning Computational Loops: If a loop has at least one sync condition, it is considered a sync loop. Otherwise, it is pruned out as a computational loop.&lt;br /&gt;
* Pruning Condvar Loops: condvar loops are not considered sync loops. SyncFinder will go through all loop candidates and prune out any that make a calls cond_wait inside the loop.&lt;br /&gt;
&lt;br /&gt;
3. Synchronization Pairing&lt;br /&gt;
&lt;br /&gt;
The next step is to find the remote update that would release the sync loop. SyncFinder first finds all write instructions that would modify the sync variables. It then decides if the value that the write assigns to the sync variable would satisfy the exit condition. All those that do not are pruned. SyncFinder also prunes pairings that do not execute concurrently. This is done conservatively due to the limitations of static analysis.&lt;br /&gt;
&lt;br /&gt;
4. SyncFinder Annotation&lt;br /&gt;
&lt;br /&gt;
Finally, SyncFinder annotates these ad hoc synchronizations in a specific way so that other tools are able to find them.&lt;br /&gt;
&lt;br /&gt;
====Uses====&lt;br /&gt;
SyncFinder is a robust tool that can be utilized in a variety of applications such as bug detection, performance profiling and concurrency testing.  Using its auto-annotation feature, it is capable of identifying sections of code that demonstrate bad programming practices, which could in turn cause issues such as deadlocks.  In addition to this, the authors of the paper were able to expand upon the existing data race detector “Valgrind” in order to take advantage of the annotation system introduced by SyncFinder.  Through this, they were able to reduce the number of false positives flagged by the former, while being able to make use of the information it provides.&lt;br /&gt;
&lt;br /&gt;
====Accuracy====&lt;br /&gt;
SyncFinder was tested against 25 concurrent programs that are used across a broad cross-section of application.  In testing SyncFinder was able to positively identify 96% of ad hoc synchronizations within the tested programs.   False positives were at a rate of only 6%.  In further tests, they were able to utilize SyncFinder’s auto-annotation systems to locate and mark 5 deadlocks and 16 potential issues within Apache, MySQL and Mozilla, that had previously been missed by other analysis tools.&lt;br /&gt;
&lt;br /&gt;
====Related Work and similar tools====&lt;br /&gt;
There has been attempts to remove synchronization issues entirely from concurrent programming, such as transactional memory&amp;lt;sup&amp;gt;[[#Foot1|1]]&amp;lt;/sup&amp;gt;, a lock-free synchronization that does not require mutexes, and avoids having to use lock, unlock operations. Other attempts have been made to remove bugs that would otherwise be safe from data races but are are still at risk of unintended effects from thread interactions, such as Atomizer&amp;lt;sup&amp;gt;[[#Foot2|2]]&amp;lt;/sup&amp;gt;, a dynamic atomicity checker.&lt;br /&gt;
&lt;br /&gt;
There are tools that detect data races such as CHESS&amp;lt;sup&amp;gt;[[#Foot3|3]]&amp;lt;/sup&amp;gt;, a dynamic data race checker that runs through all possible thread execution paths and CTrigger&amp;lt;sup&amp;gt;[[#Foot4|4]]&amp;lt;/sup&amp;gt;, a tool that checks for atomicity violations. The problem with these programs is that they only look for standard synchronization methods and structures, such as lock() and cond_wait(). They are not looking for ad hoc synchronizations.&lt;br /&gt;
&lt;br /&gt;
A similar tool to SyncFinder exists that can detect simple spinning, also an ad hoc synchronization&amp;lt;sup&amp;gt;[[#Foot5|5]]&amp;lt;/sup&amp;gt;, but it only detects simple spinning and not the more complicated ad hoc variations.&lt;br /&gt;
&lt;br /&gt;
Several studies on bug characteristics&amp;lt;sup&amp;gt;[[#Foot6|6]]&amp;lt;/sup&amp;gt; and concurrency bugs&amp;lt;sup&amp;gt;[[#Foot7|7]]&amp;lt;/sup&amp;gt; have been composed. This paper complements these studies to better understand the nature of ad hoc synchronizations and their occurrence in concurrent programs.&lt;br /&gt;
&lt;br /&gt;
==Critique==&lt;br /&gt;
1. Uses static approach, dynamic would be better&lt;br /&gt;
* As stated in the paper, dynamic introduces run-time overhead and is not guaranteed to find if not executed in the test cases&lt;br /&gt;
Dynamic would potentially make it language agnostic.&lt;br /&gt;
&lt;br /&gt;
2. not entirely accurate, some false positives.&lt;br /&gt;
&lt;br /&gt;
3. In terms of style, lots of unnecessary repetition&lt;br /&gt;
&lt;br /&gt;
This paper successfully identifies a new type programming construct ad hoc synchronization. The paper then refers to a body of data that the authors have created that both provides proof of the criteria to identify the construct and illustrates it&#039;s frequency and likelihood to introduce bugs.  Previous to SyncFinder, debugging tools have for the most part failed to detect ad hoc synchronizations effectively. Because of this, SyncFinder has been shown to be an important tool for future development of software. &lt;br /&gt;
&lt;br /&gt;
As far as shortcomings go, it has a 96% success rate, with 6% false positives. The 6% false positive rate is more or less unavoidable, so it is hard to fault the tool for that, especially with such a high success rate. Even with a 6% false positive rate, the developer still only needs to look through a select few loops to determine which are actually ad hoc synchronizations as opposed to a whole code base.&lt;br /&gt;
&lt;br /&gt;
Finally the tool that the authors have created has been used on ubiquitous applications&amp;lt;sup&amp;gt;[[#Foot10|10]]&amp;lt;/sup&amp;gt; like Apache and exposed previously unreported bugs.  This stands as a testament to both it&#039;s effectiveness and validity.&lt;br /&gt;
&lt;br /&gt;
==References==&lt;br /&gt;
&amp;lt;span id=&amp;quot;Foot1&amp;quot;&amp;gt;&amp;lt;sup&amp;gt;1&amp;lt;/sup&amp;gt; M Herlihy and J.E.B. Moss, 2NA0. Transactional Memory:&lt;br /&gt;
Architectural Support for Lock-Free Data Structures. [online] Available at: &amp;lt;http://www.cs.brown.edu/~mph/HerlihyM93/herlihy93transactional.pdf&amp;gt; [Accessed 23 November 2010].&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span id=&amp;quot;Foot2&amp;quot;&amp;gt;&amp;lt;sup&amp;gt;2&amp;lt;/sup&amp;gt; C Flanagan and S N Freund, 2NA0. Atomizer: A Dynamic Atomicity Checker For Multithreaded Programs (Summary). [online] Company(optional) Available at: &amp;lt;http://www.cs.williams.edu/~freund/papers/atomizer-padtad.pdf&amp;gt; [Accessed 23 November 2010].&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span id=&amp;quot;Foot3&amp;quot;&amp;gt;&amp;lt;sup&amp;gt;3&amp;lt;/sup&amp;gt; T Ball,M Musuvathi and S Qadeer, 2NA0. CHESS: A Systematic Testing Tool for Concurrent. [online] Company(optional) Available at: &amp;lt;http://research.microsoft.com/pubs/70509/tr-2007-149.pdf&amp;gt; [Accessed 23 November 2010].&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span id=&amp;quot;Foot4&amp;quot;&amp;gt;&amp;lt;sup&amp;gt;4&amp;lt;/sup&amp;gt; Author, 2NA0. Title. [online] Company(optional) Available at: &amp;lt;http://pages.cs.wisc.edu/~shanlu/paper/asplos092-zhou.pdf&amp;gt; [Accessed 23 November 2010].&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span id=&amp;quot;Foot5&amp;quot;&amp;gt;&amp;lt;sup&amp;gt;5&amp;lt;/sup&amp;gt; LI, T., LEBECK, A. R., AND SORIN, D. J. Spin detection hardware for improved management of multithreaded systems. IEEE Transactions on Parallel and Distributed Systems PDS-17, 6 (June 2006), 508–521.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span id=&amp;quot;Foot6&amp;quot;&amp;gt;&amp;lt;sup&amp;gt;6&amp;lt;/sup&amp;gt; Author, 2NA0. Title. [online] Company(optional) Available at: &amp;lt;http://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.121.1203&amp;amp;amp;rep=rep1&amp;amp;amp;type=pdf&amp;gt; [Accessed 23 November 2010].&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span id=&amp;quot;Foot7&amp;quot;&amp;gt;&amp;lt;sup&amp;gt;7&amp;lt;/sup&amp;gt; Author, 2NA0. Title. [online] Company(optional) Available at: &amp;lt;[http://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.121.1203&amp;amp;amp;rep=rep1&amp;amp;amp;type=pdf]&amp;gt; [Accessed 23 November 2010].&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span id=&amp;quot;Foot8&amp;quot;&amp;gt;&amp;lt;sup&amp;gt;8&amp;lt;/sup&amp;gt; Author, 2NA0. Title. [online] Company(optional) Available at: &amp;lt;[http://www.usenix.org/events/bsdcon/full_papers/baldwin/baldwin_html/node5.html]&amp;gt; [Accessed 23 November 2010].&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span id=&amp;quot;Foot9&amp;quot;&amp;gt;&amp;lt;sup&amp;gt;9&amp;lt;/sup&amp;gt; Author, 2010. Title. [online] Company(optional) Available at: &amp;lt;http://homeostasis.scs.carleton.ca/wiki/index.php/Basic_Synchronization_Principles&amp;gt; [Accessed 23 November 2010].&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span id=&amp;quot;Foot10&amp;quot;&amp;gt;&amp;lt;sup&amp;gt;10&amp;lt;/sup&amp;gt; Author, 2010. Title. [online] Company(optional) Available at: &amp;lt;http://trends.builtwith.com/Web-Server/Apache&amp;gt; [Accessed 30 November 2010].&amp;lt;/span&amp;gt;&lt;/div&gt;</summary>
		<author><name>Slay</name></author>
	</entry>
	<entry>
		<id>https://homeostasis.scs.carleton.ca/wiki/index.php?title=Talk:COMP_3000_Essay_2_2010_Question_7&amp;diff=5644</id>
		<title>Talk:COMP 3000 Essay 2 2010 Question 7</title>
		<link rel="alternate" type="text/html" href="https://homeostasis.scs.carleton.ca/wiki/index.php?title=Talk:COMP_3000_Essay_2_2010_Question_7&amp;diff=5644"/>
		<updated>2010-11-28T00:28:08Z</updated>

		<summary type="html">&lt;p&gt;Slay: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&#039;&#039;&#039;Attendence. Please mark your name to say you&#039;re here&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Stephany Lay --[[User:Slay|Slay]] 19:45, 15 November 2010 (UTC)&lt;br /&gt;
&lt;br /&gt;
--[[User:Asoknack|Asoknack]] 16:00, 15 November 2010 (UTC)&lt;br /&gt;
&lt;br /&gt;
--[[User:Smcilroy|Smcilroy]] 18:43, 15 November 2010 (UTC)&lt;br /&gt;
&lt;br /&gt;
Lester Mundt&lt;br /&gt;
--[[User:Lmundt|Lmundt]] 18:58, 15 November 2010 (UTC)&lt;br /&gt;
&lt;br /&gt;
Thomas McMahon&lt;br /&gt;
--[[User:cha0s|cha0s]]&lt;br /&gt;
&lt;br /&gt;
Martin Kugler&lt;br /&gt;
--[[User:Mkugler|Mkugler]] 02:42, 18 November 2010 (UTC)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
So only 2 days left before it&#039;s due! I&#039;d like to hear what others are planning on contributing and when, since only myself and Slay have done any work on the actual essay. It would be nice to hear from you guys, even if its to say that your busy and are going to work on it on Thursday etc. etc.--[[User:Smcilroy|Smcilroy]] 22:05, 23 November 2010 (UTC)&lt;br /&gt;
&lt;br /&gt;
So, what&#039;s the plan for this?  How do we want to do this?  Given the duedate looming in 4 days we should probably get talking about it.  What are your thoughts?&lt;br /&gt;
--[[User:Mkugler|Mkugler]] 23:00, 21 November 2010 (UTC)&lt;br /&gt;
::Hey! So I added an intro and it covers the research problem to. I also added a bare bones skeleton of what we&#039;ll probably end up talking about. Personally, I think people should choose a couple of subsections and sections that they will work on and just put your name beside it. It seems to work best as people then have a sense of ownership and responsibility to that particular topic and aren&#039;t overwhelmed at editing the entire essay, at least for the beginning. That doesn&#039;t mean we can&#039;t all edit each others work though! I welcome any changes to the intro. Anyways, that&#039;s my 2 cents. --[[User:Smcilroy|Smcilroy]] 06:06, 22 November 2010 (UTC)&lt;br /&gt;
::As critique is our own opinion, we should discuss our thoughts. Having only one person writing that would not express everyone&#039;s opinions. --[[User:Slay|Slay]] 20:48, 22 November 2010 (UTC)&lt;br /&gt;
&lt;br /&gt;
Hey, gonna be fleshing out the Contribution section, probably the stuff under the SyncFinder heading.  Just wanted to give people a head&#039;s up so we don&#039;t waste time all doing the same thing.&lt;br /&gt;
--[[User:Mkugler|Mkugler]] 03:09, 24 November 2010 (UTC)&lt;br /&gt;
&lt;br /&gt;
I will do the Findings section for now then. I&#039;m unsure when I&#039;ll get to it though. I&#039;ll try for this weekend. --[[User:Slay|Slay]] 00:14, 26 November 2010 (UTC)&lt;br /&gt;
&lt;br /&gt;
Not much activity going on. Please at least claim a section to work on so we know it will get covered. I&#039;ll continue to work on my part when I get the time. --[[User:Slay|Slay]] 00:28, 28 November 2010 (UTC)&lt;/div&gt;</summary>
		<author><name>Slay</name></author>
	</entry>
	<entry>
		<id>https://homeostasis.scs.carleton.ca/wiki/index.php?title=COMP_3000_Essay_2_2010_Question_7&amp;diff=5643</id>
		<title>COMP 3000 Essay 2 2010 Question 7</title>
		<link rel="alternate" type="text/html" href="https://homeostasis.scs.carleton.ca/wiki/index.php?title=COMP_3000_Essay_2_2010_Question_7&amp;diff=5643"/>
		<updated>2010-11-28T00:26:06Z</updated>

		<summary type="html">&lt;p&gt;Slay: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Paper==&lt;br /&gt;
===Ad Hoc Synchronization Considered Harmful===&lt;br /&gt;
Weiwei Xiong&lt;br /&gt;
University of California, San Diego&lt;br /&gt;
&lt;br /&gt;
Soyeon Park, Jiaqi Zhang, Yuanyuan Zhou&lt;br /&gt;
University of Illinois at Urbana-Champaign&lt;br /&gt;
&lt;br /&gt;
Zhiqiang Ma&lt;br /&gt;
Intel&lt;br /&gt;
==Research Problem==&lt;br /&gt;
As the computer industry continues to shift towards multicore processors, concurrent programming and the use of multithreaded designs has increased to keep up with this growing trend. Multithreaded applications can be found in a variety of popular applications today as they take advantage of the multithreaded approach. However, the concepts behind concurrent programming bring with them a host of potential dangers in the form of race conditions and deadlocks resulting from bad programming design and threads accessing shared memory. Fortunately, there are well known and standard methods for dealing with these problems, i.e synchronization primitives. But in real world situations, due to a variety of reasons, as we shall see, programmers often implement their own &amp;quot;ad hoc&amp;quot; synchronizations that eschew common design standards. Ad hoc synchronizations are not well documented and are not discovered by traditional tools for race conditions that look for standard synchronization primitives.&lt;br /&gt;
&lt;br /&gt;
This paper addresses these concerns in two regards, first it details a thorough study of ad hoc synchronizations. It details their nature, dangers, impact on bug detection tools and prevalence in several major open-source applications. Secondly, it introduces SyncFinder, a program that detects all ad hoc synchronizations and automatically annotates the source code where ad hoc sychnronizations are found. This can see use in conjunction with other data race checkers to improve accuracy and to build custom tools for finding deadlocks and bad programming practices. &lt;br /&gt;
&lt;br /&gt;
With detailed analysis of ad hoc synchronization and study of their occurrences in several applications, the research ultimately concludes that they are harmful and should be removed. At the same time, SyncFinder detects and documents ad hoc synchronizations in the source code enabling programmers for the first time to easily track and remove them.&lt;br /&gt;
&lt;br /&gt;
==Background Concepts==&lt;br /&gt;
===Race conditions, deadlocks===&lt;br /&gt;
Race conditions are an unintended side-effects of programming in concurrent systems, they occur when two or more processes have access to a shared resource and at least one of them have write privilege. This leads to processes modifying the data that all processes share as other may be reading them and results in the reading of stale/incorrect data. They will occur during the execution of the program and often times very difficult to detect or manipulate data in subtle ways. &lt;br /&gt;
&lt;br /&gt;
Deadlock is when two or more processes share a resource and each process is waiting on the other processes to unlock the resource. It becomes a circular chain and no process can continue.&lt;br /&gt;
&lt;br /&gt;
Both these issues occur in concurrent programming and although there are no general solutions for deadlock&amp;lt;sup&amp;gt;[[#Foot9|9]]&amp;lt;/sup&amp;gt;, there are suitable methods for dealing with them, and in the case of race conditions, using mutual exclusion locks and synchronization primitives can prevent race conditions. But no programmer is infallible and so there is always the issue of race conditions and deadlocks present in production code.&lt;br /&gt;
===Ad Hoc Synchronization===&lt;br /&gt;
Ad hoc synchronizations are loops called sync loops that continue until certain conditions are met via outside variables called sync variables. They are designed to control the flow of thread execution much like locking and unlocking of resources. There can be multiple sync variables in a sync loop and they can have multiple exit conditions and dependencies. The diversity of the sync loops, their dependencies and execution paths leads to difficulty in finding them.&lt;br /&gt;
===Synchronization primitives===&lt;br /&gt;
Synchronization variables act as barriers to memory that prevent threads from accessing the same shared resource concurrently&amp;lt;sup&amp;gt;[[#Foot8|8]]&amp;lt;/sup&amp;gt;. They come in many forms such as mutexes and condition variables.&lt;br /&gt;
Mutexes are mutual exclusive locks that threads employ to lock a resource that they need. No other threads can access them at that point. Once they are finished, they release the lock and the other threads can then lock and access the resource.&lt;br /&gt;
Condition variables are variables that will block the thread until a certain condition is met. This allows the thread to only execute when it is safe to perform its operation.&lt;br /&gt;
&lt;br /&gt;
==Contribution==&lt;br /&gt;
&lt;br /&gt;
With concurrent programming commonly used in modern applications, we face many issues that result from having simultaneous execution. In order to maintain a concurrent system, synchronizations are required to ensure that the executing tasks do not interfere with each other, which could be disastrous for the system. However, many programmers do not use proper synchronization techniques to deal with these issues. Rather, they implement synchronizations in an ad hoc fashion. In this study, it is shown that ad hoc synchronizations, though implemented as a solution to concurrency issues, are indeed undesirable in a system. This paper details the characteristics of ad hoc synchronizations and the issues associated with this implementation and introduces the program, SyncFinder, which is used to identify such synchronizations in code.&lt;br /&gt;
&lt;br /&gt;
===Findings===&lt;br /&gt;
&lt;br /&gt;
In order to identify the characteristics of ad hoc synchronizations, 12 mainstream programs were examined to find instances of ad hoc synchronizations. These programs were either of server, desktop or scientific type, including Apache, MySQL and Mozilla. Through manual inspection of the source code, these characteristics of ad hoc synchronizations were found.&lt;br /&gt;
&lt;br /&gt;
1. In all programs studied, it was found that each had numerous ad hoc synchronizations implemented. The number of synchronizations found ranged from 6-83, with server type programs inhabiting the higher portion of the interval. It is likely that programmers use this type of synchronization for two reasons. &lt;br /&gt;
* In order to ensure a certain order of execution in the case of a concurrent system, programmers will use ad hoc synchronization to superimpose this order. With traditional synchronization techniques, this can vary between systems. As the order can vary, it is difficult to create a common interface.&lt;br /&gt;
* Some synchronization techniques introduce heavy-weight synchronization primitives. As such, programmers will use ad hoc synchronizations to avoid this and supposedly protect performance.&lt;br /&gt;
&lt;br /&gt;
2. Often, it is very hard to identify an ad hoc loop as a synchronization method. They are hard to distinguish from other computational loops and as the implementations are diverse, it is hard to pinpoint them from the code. This makes the system hard to maintain, as other programmers will not be able to identify ad hoc loops implemented by another and debugging programs cannot recognize them as issues. &lt;br /&gt;
&lt;br /&gt;
3. It was found that ad hoc synchronizations often introduce bugs into the system such as deadlocks or hangs. As these are different than those caused by locks and other synchronizations it is hard for detection tools to recognize them if they were not first identified either manually or automatically. &lt;br /&gt;
&lt;br /&gt;
4. As they are not easily recognizable, it is hard for bug detection tools to fix issues presented by ad hoc synchronizations. In fact, it is often the case that these tools either do not find these issues or report them as false positives as the tool is unaware of the &amp;quot;work arounds&amp;quot; put into affect by using ad hoc synchronization. Since they cannot find these problems, it severely impacts the effectiveness of such tools.&lt;br /&gt;
This also impacts analysis of performance. Synchronization is quite costly and if a tool cannot recognize the formm of synchronization, a false report is generated and the programmer will not be aware. This may cause poor decisions on the part of the programmer just from the fact that ad hoc synchronizations are hard to identify.&lt;br /&gt;
&lt;br /&gt;
5. The reason ad hoc synchronizations are hard to identify stems from the fact that there is no single way of implementing it. The ways in which ad hoc synchronizations are done are quite diverse and so it is hard to identify just on a few criteria. Some typical characteristics of an ad hoc synchronization follow.&lt;br /&gt;
* These loops can contain one or multiple exit conditions. Some or all of these exit conditions may be satisfied by remote threads while others may be satisfied locally.&lt;br /&gt;
* [working on it]&lt;br /&gt;
&lt;br /&gt;
Reasons behind why people use ad hoc synchronization and possible improvements over them ie Synchronization primitives&lt;br /&gt;
&lt;br /&gt;
===SyncFinder===&lt;br /&gt;
Intro to what it is and what it does&lt;br /&gt;
====How it works====&lt;br /&gt;
1. find loops&lt;br /&gt;
&lt;br /&gt;
2. identify sync loops&lt;br /&gt;
&lt;br /&gt;
3. EDV analysis&lt;br /&gt;
&lt;br /&gt;
4. Pruning&lt;br /&gt;
&lt;br /&gt;
5. Annotation of found sync&lt;br /&gt;
&lt;br /&gt;
====Uses====&lt;br /&gt;
1. A tool to detect bad practices&lt;br /&gt;
&lt;br /&gt;
2. Extensions to data race detection&lt;br /&gt;
&lt;br /&gt;
====Accuracy====&lt;br /&gt;
&lt;br /&gt;
====Related Work and similar tools====&lt;br /&gt;
There has been attempts to remove synchronization issues entirely from concurrent programming, such as transactional memory&amp;lt;sup&amp;gt;[[#Foot1|1]]&amp;lt;/sup&amp;gt;, a lock-free synchronization that does not require mutexes, and avoids having to use lock, unlock operations. Other attempts have been made to remove bugs that would otherwise be safe from data races but are are still at risk of unintended effects from thread interactions, such as Atomizer&amp;lt;sup&amp;gt;[[#Foot2|2]]&amp;lt;/sup&amp;gt;, a dynamic atomicity checker.&lt;br /&gt;
&lt;br /&gt;
There are tools that detect data races such as CHESS&amp;lt;sup&amp;gt;[[#Foot3|3]]&amp;lt;/sup&amp;gt;, a dynamic data race checker that runs through all possible thread execution paths and CTrigger&amp;lt;sup&amp;gt;[[#Foot4|4]]&amp;lt;/sup&amp;gt;, a tool that checks for atomicity violations. The problem with these programs is that they only look for standard synchronization methods and structures, such as lock() and cond_wait(). They are not looking for ad hoc synchronizations.&lt;br /&gt;
&lt;br /&gt;
A similar tool to SyncFinder exists that can detect simple spinning, also an ad hoc synchronization&amp;lt;sup&amp;gt;[[#Foot5|5]]&amp;lt;/sup&amp;gt;, but it only detects simple spinning and not the more complicated ad hoc variations.&lt;br /&gt;
&lt;br /&gt;
Several studies on bug characteristics&amp;lt;sup&amp;gt;[[#Foot6|6]]&amp;lt;/sup&amp;gt; and concurrency bugs&amp;lt;sup&amp;gt;[[#Foot7|7]]&amp;lt;/sup&amp;gt; have been composed. This paper complements these studies to better understand the nature of ad hoc synchronizations and their occurrence in concurrent programs.&lt;br /&gt;
&lt;br /&gt;
==Critique==&lt;br /&gt;
1. Uses static approach, dynamic would be better&lt;br /&gt;
* As stated in the paper, dynamic introduces run-time overhead and is not guaranteed to find if not executed in the test cases&lt;br /&gt;
&lt;br /&gt;
2. not entirely accurate, some false positives.&lt;br /&gt;
&lt;br /&gt;
3. In terms of style, lots of unnecessary repetition&lt;br /&gt;
&lt;br /&gt;
==References==&lt;br /&gt;
&amp;lt;span id=&amp;quot;Foot1&amp;quot;&amp;gt;&amp;lt;sup&amp;gt;1&amp;lt;/sup&amp;gt; M Herlihy and J.E.B. Moss, 2NA0. Transactional Memory:&lt;br /&gt;
Architectural Support for Lock-Free Data Structures. [online] Available at: &amp;lt;http://www.cs.brown.edu/~mph/HerlihyM93/herlihy93transactional.pdf&amp;gt; [Accessed 23 November 2010].&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span id=&amp;quot;Foot2&amp;quot;&amp;gt;&amp;lt;sup&amp;gt;2&amp;lt;/sup&amp;gt; C Flanagan and S N Freund, 2NA0. Atomizer: A Dynamic Atomicity Checker For Multithreaded Programs (Summary). [online] Company(optional) Available at: &amp;lt;http://www.cs.williams.edu/~freund/papers/atomizer-padtad.pdf&amp;gt; [Accessed 23 November 2010].&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span id=&amp;quot;Foot3&amp;quot;&amp;gt;&amp;lt;sup&amp;gt;3&amp;lt;/sup&amp;gt; T Ball,M Musuvathi and S Qadeer, 2NA0. CHESS: A Systematic Testing Tool for Concurrent. [online] Company(optional) Available at: &amp;lt;http://research.microsoft.com/pubs/70509/tr-2007-149.pdf&amp;gt; [Accessed 23 November 2010].&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span id=&amp;quot;Foot4&amp;quot;&amp;gt;&amp;lt;sup&amp;gt;4&amp;lt;/sup&amp;gt; Author, 2NA0. Title. [online] Company(optional) Available at: &amp;lt;http://pages.cs.wisc.edu/~shanlu/paper/asplos092-zhou.pdf&amp;gt; [Accessed 23 November 2010].&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span id=&amp;quot;Foot5&amp;quot;&amp;gt;&amp;lt;sup&amp;gt;5&amp;lt;/sup&amp;gt; LI, T., LEBECK, A. R., AND SORIN, D. J. Spin detection hardware for improved management of multithreaded systems. IEEE Transactions on Parallel and Distributed Systems PDS-17, 6 (June 2006), 508–521.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span id=&amp;quot;Foot6&amp;quot;&amp;gt;&amp;lt;sup&amp;gt;6&amp;lt;/sup&amp;gt; Author, 2NA0. Title. [online] Company(optional) Available at: &amp;lt;http://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.121.1203&amp;amp;amp;rep=rep1&amp;amp;amp;type=pdf&amp;gt; [Accessed 23 November 2010].&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span id=&amp;quot;Foot7&amp;quot;&amp;gt;&amp;lt;sup&amp;gt;7&amp;lt;/sup&amp;gt; Author, 2NA0. Title. [online] Company(optional) Available at: &amp;lt;[http://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.121.1203&amp;amp;amp;rep=rep1&amp;amp;amp;type=pdf]&amp;gt; [Accessed 23 November 2010].&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span id=&amp;quot;Foot8&amp;quot;&amp;gt;&amp;lt;sup&amp;gt;8&amp;lt;/sup&amp;gt; Author, 2NA0. Title. [online] Company(optional) Available at: &amp;lt;[http://www.usenix.org/events/bsdcon/full_papers/baldwin/baldwin_html/node5.html]&amp;gt; [Accessed 23 November 2010].&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span id=&amp;quot;Foot9&amp;quot;&amp;gt;&amp;lt;sup&amp;gt;9&amp;lt;/sup&amp;gt; Author, 2010. Title. [online] Company(optional) Available at: &amp;lt;http://homeostasis.scs.carleton.ca/wiki/index.php/Basic_Synchronization_Principles&amp;gt; [Accessed 23 November 2010].&amp;lt;/span&amp;gt;&lt;/div&gt;</summary>
		<author><name>Slay</name></author>
	</entry>
	<entry>
		<id>https://homeostasis.scs.carleton.ca/wiki/index.php?title=COMP_3000_Essay_2_2010_Question_7&amp;diff=5642</id>
		<title>COMP 3000 Essay 2 2010 Question 7</title>
		<link rel="alternate" type="text/html" href="https://homeostasis.scs.carleton.ca/wiki/index.php?title=COMP_3000_Essay_2_2010_Question_7&amp;diff=5642"/>
		<updated>2010-11-28T00:25:32Z</updated>

		<summary type="html">&lt;p&gt;Slay: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Paper==&lt;br /&gt;
===Ad Hoc Synchronization Considered Harmful===&lt;br /&gt;
Weiwei Xiong&lt;br /&gt;
University of California, San Diego&lt;br /&gt;
&lt;br /&gt;
Soyeon Park, Jiaqi Zhang, Yuanyuan Zhou&lt;br /&gt;
University of Illinois at Urbana-Champaign&lt;br /&gt;
&lt;br /&gt;
Zhiqiang Ma&lt;br /&gt;
Intel&lt;br /&gt;
==Research Problem==&lt;br /&gt;
As the computer industry continues to shift towards multicore processors, concurrent programming and the use of multithreaded designs has increased to keep up with this growing trend. Multithreaded applications can be found in a variety of popular applications today as they take advantage of the multithreaded approach. However, the concepts behind concurrent programming bring with them a host of potential dangers in the form of race conditions and deadlocks resulting from bad programming design and threads accessing shared memory. Fortunately, there are well known and standard methods for dealing with these problems, i.e synchronization primitives. But in real world situations, due to a variety of reasons, as we shall see, programmers often implement their own &amp;quot;ad hoc&amp;quot; synchronizations that eschew common design standards. Ad hoc synchronizations are not well documented and are not discovered by traditional tools for race conditions that look for standard synchronization primitives.&lt;br /&gt;
&lt;br /&gt;
This paper addresses these concerns in two regards, first it details a thorough study of ad hoc synchronizations. It details their nature, dangers, impact on bug detection tools and prevalence in several major open-source applications. Secondly, it introduces SyncFinder, a program that detects all ad hoc synchronizations and automatically annotates the source code where ad hoc sychnronizations are found. This can see use in conjunction with other data race checkers to improve accuracy and to build custom tools for finding deadlocks and bad programming practices. &lt;br /&gt;
&lt;br /&gt;
With detailed analysis of ad hoc synchronization and study of their occurrences in several applications, the research ultimately concludes that they are harmful and should be removed. At the same time, SyncFinder detects and documents ad hoc synchronizations in the source code enabling programmers for the first time to easily track and remove them.&lt;br /&gt;
&lt;br /&gt;
==Background Concepts==&lt;br /&gt;
===Race conditions, deadlocks===&lt;br /&gt;
Race conditions are an unintended side-effects of programming in concurrent systems, they occur when two or more processes have access to a shared resource and at least one of them have write privilege. This leads to processes modifying the data that all processes share as other may be reading them and results in the reading of stale/incorrect data. They will occur during the execution of the program and often times very difficult to detect or manipulate data in subtle ways. &lt;br /&gt;
&lt;br /&gt;
Deadlock is when two or more processes share a resource and each process is waiting on the other processes to unlock the resource. It becomes a circular chain and no process can continue.&lt;br /&gt;
&lt;br /&gt;
Both these issues occur in concurrent programming and although there are no general solutions for deadlock&amp;lt;sup&amp;gt;[[#Foot9|9]]&amp;lt;/sup&amp;gt;, there are suitable methods for dealing with them, and in the case of race conditions, using mutual exclusion locks and synchronization primitives can prevent race conditions. But no programmer is infallible and so there is always the issue of race conditions and deadlocks present in production code.&lt;br /&gt;
===Ad Hoc Synchronization===&lt;br /&gt;
Ad hoc synchronizations are loops called sync loops that continue until certain conditions are met via outside variables called sync variables. They are designed to control the flow of thread execution much like locking and unlocking of resources. There can be multiple sync variables in a sync loop and they can have multiple exit conditions and dependencies. The diversity of the sync loops, their dependencies and execution paths leads to difficulty in finding them.&lt;br /&gt;
===Synchronization primitives===&lt;br /&gt;
Synchronization variables act as barriers to memory that prevent threads from accessing the same shared resource concurrently&amp;lt;sup&amp;gt;[[#Foot8|8]]&amp;lt;/sup&amp;gt;. They come in many forms such as mutexes and condition variables.&lt;br /&gt;
Mutexes are mutual exclusive locks that threads employ to lock a resource that they need. No other threads can access them at that point. Once they are finished, they release the lock and the other threads can then lock and access the resource.&lt;br /&gt;
Condition variables are variables that will block the thread until a certain condition is met. This allows the thread to only execute when it is safe to perform its operation.&lt;br /&gt;
&lt;br /&gt;
==Contribution==&lt;br /&gt;
&lt;br /&gt;
With concurrent programming commonly used in modern applications, we face many issues that result from having simultaneous execution. In order to maintain a concurrent system, synchronizations are required to ensure that the executing tasks do not interfere with each other, which could be disastrous for the system. However, many programmers do not use proper synchronization techniques to deal with these issues. Rather, they implement synchronizations in an ad hoc fashion. In this study, it is shown that ad hoc synchronizations, though implemented as a solution to concurrency issues, are indeed undesirable in a system. This paper details the characteristics of ad hoc synchronizations and the issues associated with this implementation and introduces the program, SyncFinder, which is used to identify such synchronizations in code.&lt;br /&gt;
&lt;br /&gt;
===Findings===&lt;br /&gt;
&lt;br /&gt;
In order to identify the characteristics of ad hoc synchronizations, 12 mainstream programs were examined to find instances of ad hoc synchronizations. These programs were either of server, desktop or scientific type, including Apache, MySQL and Mozilla. Through manual inspection of the source code, these characteristics of ad hoc synchronizations were found.&lt;br /&gt;
&lt;br /&gt;
# In all programs studied, it was found that each had numerous ad hoc synchronizations implemented. The number of synchronizations found ranged from 6-83, with server type programs inhabiting the higher portion of the interval. It is likely that programmers use this type of synchronization for two reasons. &lt;br /&gt;
* In order to ensure a certain order of execution in the case of a concurrent system, programmers will use ad hoc synchronization to superimpose this order. With traditional synchronization techniques, this can vary between systems. As the order can vary, it is difficult to create a common interface.&lt;br /&gt;
* Some synchronization techniques introduce heavy-weight synchronization primitives. As such, programmers will use ad hoc synchronizations to avoid this and supposedly protect performance.&lt;br /&gt;
&lt;br /&gt;
# Often, it is very hard to identify an ad hoc loop as a synchronization method. They are hard to distinguish from other computational loops and as the implementations are diverse, it is hard to pinpoint them from the code. This makes the system hard to maintain, as other programmers will not be able to identify ad hoc loops implemented by another and debugging programs cannot recognize them as issues. &lt;br /&gt;
&lt;br /&gt;
# It was found that ad hoc synchronizations often introduce bugs into the system such as deadlocks or hangs. As these are different than those caused by locks and other synchronizations it is hard for detection tools to recognize them if they were not first identified either manually or automatically. &lt;br /&gt;
&lt;br /&gt;
# As they are not easily recognizable, it is hard for bug detection tools to fix issues presented by ad hoc synchronizations. In fact, it is often the case that these tools either do not find these issues or report them as false positives as the tool is unaware of the &amp;quot;work arounds&amp;quot; put into affect by using ad hoc synchronization. Since they cannot find these problems, it severely impacts the effectiveness of such tools.&lt;br /&gt;
This also impacts analysis of performance. Synchronization is quite costly and if a tool cannot recognize the formm of synchronization, a false report is generated and the programmer will not be aware. This may cause poor decisions on the part of the programmer just from the fact that ad hoc synchronizations are hard to identify.&lt;br /&gt;
&lt;br /&gt;
# The reason ad hoc synchronizations are hard to identify stems from the fact that there is no single way of implementing it. The ways in which ad hoc synchronizations are done are quite diverse and so it is hard to identify just on a few criteria. Some typical characteristics of an ad hoc synchronization follow.&lt;br /&gt;
* These loops can contain one or multiple exit conditions. Some or all of these exit conditions may be satisfied by remote threads while others may be satisfied locally.&lt;br /&gt;
* [working on it]&lt;br /&gt;
&lt;br /&gt;
Reasons behind why people use ad hoc synchronization and possible improvements over them ie Synchronization primitives&lt;br /&gt;
&lt;br /&gt;
===SyncFinder===&lt;br /&gt;
Intro to what it is and what it does&lt;br /&gt;
====How it works====&lt;br /&gt;
1. find loops&lt;br /&gt;
&lt;br /&gt;
2. identify sync loops&lt;br /&gt;
&lt;br /&gt;
3. EDV analysis&lt;br /&gt;
&lt;br /&gt;
4. Pruning&lt;br /&gt;
&lt;br /&gt;
5. Annotation of found sync&lt;br /&gt;
&lt;br /&gt;
====Uses====&lt;br /&gt;
1. A tool to detect bad practices&lt;br /&gt;
&lt;br /&gt;
2. Extensions to data race detection&lt;br /&gt;
&lt;br /&gt;
====Accuracy====&lt;br /&gt;
&lt;br /&gt;
====Related Work and similar tools====&lt;br /&gt;
There has been attempts to remove synchronization issues entirely from concurrent programming, such as transactional memory&amp;lt;sup&amp;gt;[[#Foot1|1]]&amp;lt;/sup&amp;gt;, a lock-free synchronization that does not require mutexes, and avoids having to use lock, unlock operations. Other attempts have been made to remove bugs that would otherwise be safe from data races but are are still at risk of unintended effects from thread interactions, such as Atomizer&amp;lt;sup&amp;gt;[[#Foot2|2]]&amp;lt;/sup&amp;gt;, a dynamic atomicity checker.&lt;br /&gt;
&lt;br /&gt;
There are tools that detect data races such as CHESS&amp;lt;sup&amp;gt;[[#Foot3|3]]&amp;lt;/sup&amp;gt;, a dynamic data race checker that runs through all possible thread execution paths and CTrigger&amp;lt;sup&amp;gt;[[#Foot4|4]]&amp;lt;/sup&amp;gt;, a tool that checks for atomicity violations. The problem with these programs is that they only look for standard synchronization methods and structures, such as lock() and cond_wait(). They are not looking for ad hoc synchronizations.&lt;br /&gt;
&lt;br /&gt;
A similar tool to SyncFinder exists that can detect simple spinning, also an ad hoc synchronization&amp;lt;sup&amp;gt;[[#Foot5|5]]&amp;lt;/sup&amp;gt;, but it only detects simple spinning and not the more complicated ad hoc variations.&lt;br /&gt;
&lt;br /&gt;
Several studies on bug characteristics&amp;lt;sup&amp;gt;[[#Foot6|6]]&amp;lt;/sup&amp;gt; and concurrency bugs&amp;lt;sup&amp;gt;[[#Foot7|7]]&amp;lt;/sup&amp;gt; have been composed. This paper complements these studies to better understand the nature of ad hoc synchronizations and their occurrence in concurrent programs.&lt;br /&gt;
&lt;br /&gt;
==Critique==&lt;br /&gt;
1. Uses static approach, dynamic would be better&lt;br /&gt;
* As stated in the paper, dynamic introduces run-time overhead and is not guaranteed to find if not executed in the test cases&lt;br /&gt;
&lt;br /&gt;
2. not entirely accurate, some false positives.&lt;br /&gt;
&lt;br /&gt;
3. In terms of style, lots of unnecessary repetition&lt;br /&gt;
&lt;br /&gt;
==References==&lt;br /&gt;
&amp;lt;span id=&amp;quot;Foot1&amp;quot;&amp;gt;&amp;lt;sup&amp;gt;1&amp;lt;/sup&amp;gt; M Herlihy and J.E.B. Moss, 2NA0. Transactional Memory:&lt;br /&gt;
Architectural Support for Lock-Free Data Structures. [online] Available at: &amp;lt;http://www.cs.brown.edu/~mph/HerlihyM93/herlihy93transactional.pdf&amp;gt; [Accessed 23 November 2010].&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span id=&amp;quot;Foot2&amp;quot;&amp;gt;&amp;lt;sup&amp;gt;2&amp;lt;/sup&amp;gt; C Flanagan and S N Freund, 2NA0. Atomizer: A Dynamic Atomicity Checker For Multithreaded Programs (Summary). [online] Company(optional) Available at: &amp;lt;http://www.cs.williams.edu/~freund/papers/atomizer-padtad.pdf&amp;gt; [Accessed 23 November 2010].&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span id=&amp;quot;Foot3&amp;quot;&amp;gt;&amp;lt;sup&amp;gt;3&amp;lt;/sup&amp;gt; T Ball,M Musuvathi and S Qadeer, 2NA0. CHESS: A Systematic Testing Tool for Concurrent. [online] Company(optional) Available at: &amp;lt;http://research.microsoft.com/pubs/70509/tr-2007-149.pdf&amp;gt; [Accessed 23 November 2010].&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span id=&amp;quot;Foot4&amp;quot;&amp;gt;&amp;lt;sup&amp;gt;4&amp;lt;/sup&amp;gt; Author, 2NA0. Title. [online] Company(optional) Available at: &amp;lt;http://pages.cs.wisc.edu/~shanlu/paper/asplos092-zhou.pdf&amp;gt; [Accessed 23 November 2010].&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span id=&amp;quot;Foot5&amp;quot;&amp;gt;&amp;lt;sup&amp;gt;5&amp;lt;/sup&amp;gt; LI, T., LEBECK, A. R., AND SORIN, D. J. Spin detection hardware for improved management of multithreaded systems. IEEE Transactions on Parallel and Distributed Systems PDS-17, 6 (June 2006), 508–521.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span id=&amp;quot;Foot6&amp;quot;&amp;gt;&amp;lt;sup&amp;gt;6&amp;lt;/sup&amp;gt; Author, 2NA0. Title. [online] Company(optional) Available at: &amp;lt;http://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.121.1203&amp;amp;amp;rep=rep1&amp;amp;amp;type=pdf&amp;gt; [Accessed 23 November 2010].&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span id=&amp;quot;Foot7&amp;quot;&amp;gt;&amp;lt;sup&amp;gt;7&amp;lt;/sup&amp;gt; Author, 2NA0. Title. [online] Company(optional) Available at: &amp;lt;[http://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.121.1203&amp;amp;amp;rep=rep1&amp;amp;amp;type=pdf]&amp;gt; [Accessed 23 November 2010].&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span id=&amp;quot;Foot8&amp;quot;&amp;gt;&amp;lt;sup&amp;gt;8&amp;lt;/sup&amp;gt; Author, 2NA0. Title. [online] Company(optional) Available at: &amp;lt;[http://www.usenix.org/events/bsdcon/full_papers/baldwin/baldwin_html/node5.html]&amp;gt; [Accessed 23 November 2010].&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span id=&amp;quot;Foot9&amp;quot;&amp;gt;&amp;lt;sup&amp;gt;9&amp;lt;/sup&amp;gt; Author, 2010. Title. [online] Company(optional) Available at: &amp;lt;http://homeostasis.scs.carleton.ca/wiki/index.php/Basic_Synchronization_Principles&amp;gt; [Accessed 23 November 2010].&amp;lt;/span&amp;gt;&lt;/div&gt;</summary>
		<author><name>Slay</name></author>
	</entry>
	<entry>
		<id>https://homeostasis.scs.carleton.ca/wiki/index.php?title=COMP_3000_Essay_2_2010_Question_7&amp;diff=5641</id>
		<title>COMP 3000 Essay 2 2010 Question 7</title>
		<link rel="alternate" type="text/html" href="https://homeostasis.scs.carleton.ca/wiki/index.php?title=COMP_3000_Essay_2_2010_Question_7&amp;diff=5641"/>
		<updated>2010-11-27T23:03:39Z</updated>

		<summary type="html">&lt;p&gt;Slay: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Paper==&lt;br /&gt;
===Ad Hoc Synchronization Considered Harmful===&lt;br /&gt;
Weiwei Xiong&lt;br /&gt;
University of California, San Diego&lt;br /&gt;
&lt;br /&gt;
Soyeon Park, Jiaqi Zhang, Yuanyuan Zhou&lt;br /&gt;
University of Illinois at Urbana-Champaign&lt;br /&gt;
&lt;br /&gt;
Zhiqiang Ma&lt;br /&gt;
Intel&lt;br /&gt;
==Research Problem==&lt;br /&gt;
As the computer industry continues to shift towards multicore processors, concurrent programming and the use of multithreaded designs has increased to keep up with this growing trend. Multithreaded applications can be found in a variety of popular applications today as they take advantage of the multithreaded approach. However, the concepts behind concurrent programming bring with them a host of potential dangers in the form of race conditions and deadlocks resulting from bad programming design and threads accessing shared memory. Fortunately, there are well known and standard methods for dealing with these problems, i.e synchronization primitives. But in real world situations, due to a variety of reasons, as we shall see, programmers often implement their own &amp;quot;ad hoc&amp;quot; synchronizations that eschew common design standards. Ad hoc synchronizations are not well documented and are not discovered by traditional tools for race conditions that look for standard synchronization primitives.&lt;br /&gt;
&lt;br /&gt;
This paper addresses these concerns in two regards, first it details a thorough study of ad hoc synchronizations. It details their nature, dangers, impact on bug detection tools and prevalence in several major open-source applications. Secondly, it introduces SyncFinder, a program that detects all ad hoc synchronizations and automatically annotates the source code where ad hoc sychnronizations are found. This can see use in conjunction with other data race checkers to improve accuracy and to build custom tools for finding deadlocks and bad programming practices. &lt;br /&gt;
&lt;br /&gt;
With detailed analysis of ad hoc synchronization and study of their occurrences in several applications, the research ultimately concludes that they are harmful and should be removed. At the same time, SyncFinder detects and documents ad hoc synchronizations in the source code enabling programmers for the first time to easily track and remove them.&lt;br /&gt;
&lt;br /&gt;
==Background Concepts==&lt;br /&gt;
===Race conditions, deadlocks===&lt;br /&gt;
Race conditions are an unintended side-effects of programming in concurrent systems, they occur when two or more processes have access to a shared resource and at least one of them have write privilege. This leads to processes modifying the data that all processes share as other may be reading them and results in the reading of stale/incorrect data. They will occur during the execution of the program and often times very difficult to detect or manipulate data in subtle ways. &lt;br /&gt;
&lt;br /&gt;
Deadlock is when two or more processes share a resource and each process is waiting on the other processes to unlock the resource. It becomes a circular chain and no process can continue.&lt;br /&gt;
&lt;br /&gt;
Both these issues occur in concurrent programming and although there are no general solutions for deadlock&amp;lt;sup&amp;gt;[[#Foot9|9]]&amp;lt;/sup&amp;gt;, there are suitable methods for dealing with them, and in the case of race conditions, using mutual exclusion locks and synchronization primitives can prevent race conditions. But no programmer is infallible and so there is always the issue of race conditions and deadlocks present in production code.&lt;br /&gt;
===Ad Hoc Synchronization===&lt;br /&gt;
Ad hoc synchronizations are loops called sync loops that continue until certain conditions are met via outside variables called sync variables. They are designed to control the flow of thread execution much like locking and unlocking of resources. There can be multiple sync variables in a sync loop and they can have multiple exit conditions and dependencies. The diversity of the sync loops, their dependencies and execution paths leads to difficulty in finding them.&lt;br /&gt;
===Synchronization primitives===&lt;br /&gt;
Synchronization variables act as barriers to memory that prevent threads from accessing the same shared resource concurrently&amp;lt;sup&amp;gt;[[#Foot8|8]]&amp;lt;/sup&amp;gt;. They come in many forms such as mutexes and condition variables.&lt;br /&gt;
Mutexes are mutual exclusive locks that threads employ to lock a resource that they need. No other threads can access them at that point. Once they are finished, they release the lock and the other threads can then lock and access the resource.&lt;br /&gt;
Condition variables are variables that will block the thread until a certain condition is met. This allows the thread to only execute when it is safe to perform its operation.&lt;br /&gt;
&lt;br /&gt;
==Contribution==&lt;br /&gt;
&lt;br /&gt;
With concurrent programming commonly used in modern applications, we face many issues that result from having simultaneous execution. In order to maintain a concurrent system, synchronizations are required to ensure that the executing tasks do not interfere with each other, which could be disastrous for the system. However, many programmers do not use proper synchronization techniques to deal with these issues. Rather, they implement synchronizations in an ad hoc fashion. In this study, it is shown that ad hoc synchronizations, though implemented as a solution to concurrency issues, are indeed undesirable in a system. This paper details the characteristics of ad hoc synchronizations and the issues associated with this implementation and introduces the program, SyncFinder, which is used to identify such synchronizations in code.&lt;br /&gt;
&lt;br /&gt;
In order to identify the characteristics of ad hoc synchronizations, 12 mainstream programs were examined to find instances of ad hoc synchronizations. These programs were either of server, desktop or scientific type, including Apache, MySQL and Mozilla. Through manual inspection of the source code, these characteristics of ad hoc synchronizations were found.&lt;br /&gt;
&lt;br /&gt;
===Findings===&lt;br /&gt;
1.they are prevalent, all applications had them&lt;br /&gt;
&lt;br /&gt;
2. hard to find&lt;br /&gt;
&lt;br /&gt;
3. error prone&lt;br /&gt;
&lt;br /&gt;
4.effect other bug detection&lt;br /&gt;
&lt;br /&gt;
5. They are diverse. Different forms, multiple exits and dependencies&lt;br /&gt;
&lt;br /&gt;
Reasons behind why people use ad hoc synchronization and possible improvements over them ie Synchronization primitives&lt;br /&gt;
&lt;br /&gt;
===SyncFinder===&lt;br /&gt;
Intro to what it is and what it does&lt;br /&gt;
====How it works====&lt;br /&gt;
1. find loops&lt;br /&gt;
&lt;br /&gt;
2. identify sync loops&lt;br /&gt;
&lt;br /&gt;
3. EDV analysis&lt;br /&gt;
&lt;br /&gt;
4. Pruning&lt;br /&gt;
&lt;br /&gt;
5. Annotation of found sync&lt;br /&gt;
&lt;br /&gt;
====Uses====&lt;br /&gt;
1. A tool to detect bad practices&lt;br /&gt;
&lt;br /&gt;
2. Extensions to data race detection&lt;br /&gt;
&lt;br /&gt;
====Accuracy====&lt;br /&gt;
&lt;br /&gt;
====Related Work and similar tools====&lt;br /&gt;
There has been attempts to remove synchronization issues entirely from concurrent programming, such as transactional memory&amp;lt;sup&amp;gt;[[#Foot1|1]]&amp;lt;/sup&amp;gt;, a lock-free synchronization that does not require mutexes, and avoids having to use lock, unlock operations. Other attempts have been made to remove bugs that would otherwise be safe from data races but are are still at risk of unintended effects from thread interactions, such as Atomizer&amp;lt;sup&amp;gt;[[#Foot2|2]]&amp;lt;/sup&amp;gt;, a dynamic atomicity checker.&lt;br /&gt;
&lt;br /&gt;
There are tools that detect data races such as CHESS&amp;lt;sup&amp;gt;[[#Foot3|3]]&amp;lt;/sup&amp;gt;, a dynamic data race checker that runs through all possible thread execution paths and CTrigger&amp;lt;sup&amp;gt;[[#Foot4|4]]&amp;lt;/sup&amp;gt;, a tool that checks for atomicity violations. The problem with these programs is that they only look for standard synchronization methods and structures, such as lock() and cond_wait(). They are not looking for ad hoc synchronizations.&lt;br /&gt;
&lt;br /&gt;
A similar tool to SyncFinder exists that can detect simple spinning, also an ad hoc synchronization&amp;lt;sup&amp;gt;[[#Foot5|5]]&amp;lt;/sup&amp;gt;, but it only detects simple spinning and not the more complicated ad hoc variations.&lt;br /&gt;
&lt;br /&gt;
Several studies on bug characteristics&amp;lt;sup&amp;gt;[[#Foot6|6]]&amp;lt;/sup&amp;gt; and concurrency bugs&amp;lt;sup&amp;gt;[[#Foot7|7]]&amp;lt;/sup&amp;gt; have been composed. This paper complements these studies to better understand the nature of ad hoc synchronizations and their occurrence in concurrent programs.&lt;br /&gt;
&lt;br /&gt;
==Critique==&lt;br /&gt;
1. Uses static approach, dynamic would be better&lt;br /&gt;
* As stated in the paper, dynamic introduces run-time overhead and is not guaranteed to find if not executed in the test cases&lt;br /&gt;
&lt;br /&gt;
2. not entirely accurate, some false positives.&lt;br /&gt;
&lt;br /&gt;
3. In terms of style, lots of unnecessary repetition&lt;br /&gt;
&lt;br /&gt;
==References==&lt;br /&gt;
&amp;lt;span id=&amp;quot;Foot1&amp;quot;&amp;gt;&amp;lt;sup&amp;gt;1&amp;lt;/sup&amp;gt; M Herlihy and J.E.B. Moss, 2NA0. Transactional Memory:&lt;br /&gt;
Architectural Support for Lock-Free Data Structures. [online] Available at: &amp;lt;http://www.cs.brown.edu/~mph/HerlihyM93/herlihy93transactional.pdf&amp;gt; [Accessed 23 November 2010].&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span id=&amp;quot;Foot2&amp;quot;&amp;gt;&amp;lt;sup&amp;gt;2&amp;lt;/sup&amp;gt; C Flanagan and S N Freund, 2NA0. Atomizer: A Dynamic Atomicity Checker For Multithreaded Programs (Summary). [online] Company(optional) Available at: &amp;lt;http://www.cs.williams.edu/~freund/papers/atomizer-padtad.pdf&amp;gt; [Accessed 23 November 2010].&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span id=&amp;quot;Foot3&amp;quot;&amp;gt;&amp;lt;sup&amp;gt;3&amp;lt;/sup&amp;gt; T Ball,M Musuvathi and S Qadeer, 2NA0. CHESS: A Systematic Testing Tool for Concurrent. [online] Company(optional) Available at: &amp;lt;http://research.microsoft.com/pubs/70509/tr-2007-149.pdf&amp;gt; [Accessed 23 November 2010].&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span id=&amp;quot;Foot4&amp;quot;&amp;gt;&amp;lt;sup&amp;gt;4&amp;lt;/sup&amp;gt; Author, 2NA0. Title. [online] Company(optional) Available at: &amp;lt;http://pages.cs.wisc.edu/~shanlu/paper/asplos092-zhou.pdf&amp;gt; [Accessed 23 November 2010].&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span id=&amp;quot;Foot5&amp;quot;&amp;gt;&amp;lt;sup&amp;gt;5&amp;lt;/sup&amp;gt; LI, T., LEBECK, A. R., AND SORIN, D. J. Spin detection hardware for improved management of multithreaded systems. IEEE Transactions on Parallel and Distributed Systems PDS-17, 6 (June 2006), 508–521.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span id=&amp;quot;Foot6&amp;quot;&amp;gt;&amp;lt;sup&amp;gt;6&amp;lt;/sup&amp;gt; Author, 2NA0. Title. [online] Company(optional) Available at: &amp;lt;http://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.121.1203&amp;amp;amp;rep=rep1&amp;amp;amp;type=pdf&amp;gt; [Accessed 23 November 2010].&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span id=&amp;quot;Foot7&amp;quot;&amp;gt;&amp;lt;sup&amp;gt;7&amp;lt;/sup&amp;gt; Author, 2NA0. Title. [online] Company(optional) Available at: &amp;lt;[http://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.121.1203&amp;amp;amp;rep=rep1&amp;amp;amp;type=pdf]&amp;gt; [Accessed 23 November 2010].&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span id=&amp;quot;Foot8&amp;quot;&amp;gt;&amp;lt;sup&amp;gt;8&amp;lt;/sup&amp;gt; Author, 2NA0. Title. [online] Company(optional) Available at: &amp;lt;[http://www.usenix.org/events/bsdcon/full_papers/baldwin/baldwin_html/node5.html]&amp;gt; [Accessed 23 November 2010].&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span id=&amp;quot;Foot9&amp;quot;&amp;gt;&amp;lt;sup&amp;gt;9&amp;lt;/sup&amp;gt; Author, 2010. Title. [online] Company(optional) Available at: &amp;lt;http://homeostasis.scs.carleton.ca/wiki/index.php/Basic_Synchronization_Principles&amp;gt; [Accessed 23 November 2010].&amp;lt;/span&amp;gt;&lt;/div&gt;</summary>
		<author><name>Slay</name></author>
	</entry>
	<entry>
		<id>https://homeostasis.scs.carleton.ca/wiki/index.php?title=COMP_3000_Essay_2_2010_Question_7&amp;diff=5638</id>
		<title>COMP 3000 Essay 2 2010 Question 7</title>
		<link rel="alternate" type="text/html" href="https://homeostasis.scs.carleton.ca/wiki/index.php?title=COMP_3000_Essay_2_2010_Question_7&amp;diff=5638"/>
		<updated>2010-11-27T22:59:00Z</updated>

		<summary type="html">&lt;p&gt;Slay: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Paper==&lt;br /&gt;
===Ad Hoc Synchronization Considered Harmful===&lt;br /&gt;
Weiwei Xiong&lt;br /&gt;
University of California, San Diego&lt;br /&gt;
&lt;br /&gt;
Soyeon Park, Jiaqi Zhang, Yuanyuan Zhou&lt;br /&gt;
University of Illinois at Urbana-Champaign&lt;br /&gt;
&lt;br /&gt;
Zhiqiang Ma&lt;br /&gt;
Intel&lt;br /&gt;
==Research Problem==&lt;br /&gt;
As the computer industry continues to shift towards multicore processors, concurrent programming and the use of multithreaded designs has increased to keep up with this growing trend. Multithreaded applications can be found in a variety of popular applications today as they take advantage of the multithreaded approach. However, the concepts behind concurrent programming bring with them a host of potential dangers in the form of race conditions and deadlocks resulting from bad programming design and threads accessing shared memory. Fortunately, there are well known and standard methods for dealing with these problems, i.e synchronization primitives. But in real world situations, due to a variety of reasons, as we shall see, programmers often implement their own &amp;quot;ad hoc&amp;quot; synchronizations that eschew common design standards. Ad hoc synchronizations are not well documented and are not discovered by traditional tools for race conditions that look for standard synchronization primitives.&lt;br /&gt;
&lt;br /&gt;
This paper addresses these concerns in two regards, first it details a thorough study of ad hoc synchronizations. It details their nature, dangers, impact on bug detection tools and prevalence in several major open-source applications. Secondly, it introduces SyncFinder, a program that detects all ad hoc synchronizations and automatically annotates the source code where ad hoc sychnronizations are found. This can see use in conjunction with other data race checkers to improve accuracy and to build custom tools for finding deadlocks and bad programming practices. &lt;br /&gt;
&lt;br /&gt;
With detailed analysis of ad hoc synchronization and study of their occurrences in several applications, the research ultimately concludes that they are harmful and should be removed. At the same time, SyncFinder detects and documents ad hoc synchronizations in the source code enabling programmers for the first time to easily track and remove them.&lt;br /&gt;
&lt;br /&gt;
==Background Concepts==&lt;br /&gt;
===Race conditions, deadlocks===&lt;br /&gt;
Race conditions are an unintended side-effects of programming in concurrent systems, they occur when two or more processes have access to a shared resource and at least one of them have write privilege. This leads to processes modifying the data that all processes share as other may be reading them and results in the reading of stale/incorrect data. They will occur during the execution of the program and often times very difficult to detect or manipulate data in subtle ways. &lt;br /&gt;
&lt;br /&gt;
Deadlock is when two or more processes share a resource and each process is waiting on the other processes to unlock the resource. It becomes a circular chain and no process can continue.&lt;br /&gt;
&lt;br /&gt;
Both these issues occur in concurrent programming and although there are no general solutions for deadlock&amp;lt;sup&amp;gt;[[#Foot9|9]]&amp;lt;/sup&amp;gt;, there are suitable methods for dealing with them, and in the case of race conditions, using mutual exclusion locks and synchronization primitives can prevent race conditions. But no programmer is infallible and so there is always the issue of race conditions and deadlocks present in production code.&lt;br /&gt;
===Ad Hoc Synchronization===&lt;br /&gt;
Ad hoc synchronizations are loops called sync loops that continue until certain conditions are met via outside variables called sync variables. They are designed to control the flow of thread execution much like locking and unlocking of resources. There can be multiple sync variables in a sync loop and they can have multiple exit conditions and dependencies. The diversity of the sync loops, their dependencies and execution paths leads to difficulty in finding them.&lt;br /&gt;
===Synchronization primitives===&lt;br /&gt;
Synchronization variables act as barriers to memory that prevent threads from accessing the same shared resource concurrently&amp;lt;sup&amp;gt;[[#Foot8|8]]&amp;lt;/sup&amp;gt;. They come in many forms such as mutexes and condition variables.&lt;br /&gt;
Mutexes are mutual exclusive locks that threads employ to lock a resource that they need. No other threads can access them at that point. Once they are finished, they release the lock and the other threads can then lock and access the resource.&lt;br /&gt;
Condition variables are variables that will block the thread until a certain condition is met. This allows the thread to only execute when it is safe to perform its operation.&lt;br /&gt;
&lt;br /&gt;
==Contribution==&lt;br /&gt;
&lt;br /&gt;
With concurrent programming commonly used in modern applications, we face many issues that result from having simultaneous execution. In order to maintain a concurrent system, synchronizations are required to ensure that the executing tasks do not interfere with each other, which could be disastrous for the system. However, many programmers do not use proper synchronization techniques to deal with these issues. Rather, they implement synchronizations in an ad hoc fashion. In this study, it is shown that ad hoc synchronizations, though implemented as a solution to concurrency issues, are indeed undesirable in a system. This paper details the characteristics of ad hoc synchronizations and the issues associated with this implementation and introduces the program, SyncFinder, which is used to identify such synchronizations in code.&lt;br /&gt;
&lt;br /&gt;
===Findings===&lt;br /&gt;
1.they are prevalent, all applications had them&lt;br /&gt;
&lt;br /&gt;
2. hard to find&lt;br /&gt;
&lt;br /&gt;
3. error prone&lt;br /&gt;
&lt;br /&gt;
4.effect other bug detection&lt;br /&gt;
&lt;br /&gt;
5. They are diverse. Different forms, multiple exits and dependencies&lt;br /&gt;
&lt;br /&gt;
Reasons behind why people use ad hoc synchronization and possible improvements over them ie Synchronization primitives&lt;br /&gt;
&lt;br /&gt;
===SyncFinder===&lt;br /&gt;
Intro to what it is and what it does&lt;br /&gt;
====How it works====&lt;br /&gt;
1. find loops&lt;br /&gt;
&lt;br /&gt;
2. identify sync loops&lt;br /&gt;
&lt;br /&gt;
3. EDV analysis&lt;br /&gt;
&lt;br /&gt;
4. Pruning&lt;br /&gt;
&lt;br /&gt;
5. Annotation of found sync&lt;br /&gt;
&lt;br /&gt;
====Uses====&lt;br /&gt;
1. A tool to detect bad practices&lt;br /&gt;
&lt;br /&gt;
2. Extensions to data race detection&lt;br /&gt;
&lt;br /&gt;
====Accuracy====&lt;br /&gt;
&lt;br /&gt;
====Related Work and similar tools====&lt;br /&gt;
There has been attempts to remove synchronization issues entirely from concurrent programming, such as transactional memory&amp;lt;sup&amp;gt;[[#Foot1|1]]&amp;lt;/sup&amp;gt;, a lock-free synchronization that does not require mutexes, and avoids having to use lock, unlock operations. Other attempts have been made to remove bugs that would otherwise be safe from data races but are are still at risk of unintended effects from thread interactions, such as Atomizer&amp;lt;sup&amp;gt;[[#Foot2|2]]&amp;lt;/sup&amp;gt;, a dynamic atomicity checker.&lt;br /&gt;
&lt;br /&gt;
There are tools that detect data races such as CHESS&amp;lt;sup&amp;gt;[[#Foot3|3]]&amp;lt;/sup&amp;gt;, a dynamic data race checker that runs through all possible thread execution paths and CTrigger&amp;lt;sup&amp;gt;[[#Foot4|4]]&amp;lt;/sup&amp;gt;, a tool that checks for atomicity violations. The problem with these programs is that they only look for standard synchronization methods and structures, such as lock() and cond_wait(). They are not looking for ad hoc synchronizations.&lt;br /&gt;
&lt;br /&gt;
A similar tool to SyncFinder exists that can detect simple spinning, also an ad hoc synchronization&amp;lt;sup&amp;gt;[[#Foot5|5]]&amp;lt;/sup&amp;gt;, but it only detects simple spinning and not the more complicated ad hoc variations.&lt;br /&gt;
&lt;br /&gt;
Several studies on bug characteristics&amp;lt;sup&amp;gt;[[#Foot6|6]]&amp;lt;/sup&amp;gt; and concurrency bugs&amp;lt;sup&amp;gt;[[#Foot7|7]]&amp;lt;/sup&amp;gt; have been composed. This paper complements these studies to better understand the nature of ad hoc synchronizations and their occurrence in concurrent programs.&lt;br /&gt;
&lt;br /&gt;
==Critique==&lt;br /&gt;
1. Uses static approach, dynamic would be better&lt;br /&gt;
* As stated in the paper, dynamic introduces run-time overhead and is not guaranteed to find if not executed in the test cases&lt;br /&gt;
&lt;br /&gt;
2. not entirely accurate, some false positives.&lt;br /&gt;
&lt;br /&gt;
3. In terms of style, lots of unnecessary repetition&lt;br /&gt;
&lt;br /&gt;
==References==&lt;br /&gt;
&amp;lt;span id=&amp;quot;Foot1&amp;quot;&amp;gt;&amp;lt;sup&amp;gt;1&amp;lt;/sup&amp;gt; M Herlihy and J.E.B. Moss, 2NA0. Transactional Memory:&lt;br /&gt;
Architectural Support for Lock-Free Data Structures. [online] Available at: &amp;lt;http://www.cs.brown.edu/~mph/HerlihyM93/herlihy93transactional.pdf&amp;gt; [Accessed 23 November 2010].&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span id=&amp;quot;Foot2&amp;quot;&amp;gt;&amp;lt;sup&amp;gt;2&amp;lt;/sup&amp;gt; C Flanagan and S N Freund, 2NA0. Atomizer: A Dynamic Atomicity Checker For Multithreaded Programs (Summary). [online] Company(optional) Available at: &amp;lt;http://www.cs.williams.edu/~freund/papers/atomizer-padtad.pdf&amp;gt; [Accessed 23 November 2010].&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span id=&amp;quot;Foot3&amp;quot;&amp;gt;&amp;lt;sup&amp;gt;3&amp;lt;/sup&amp;gt; T Ball,M Musuvathi and S Qadeer, 2NA0. CHESS: A Systematic Testing Tool for Concurrent. [online] Company(optional) Available at: &amp;lt;http://research.microsoft.com/pubs/70509/tr-2007-149.pdf&amp;gt; [Accessed 23 November 2010].&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span id=&amp;quot;Foot4&amp;quot;&amp;gt;&amp;lt;sup&amp;gt;4&amp;lt;/sup&amp;gt; Author, 2NA0. Title. [online] Company(optional) Available at: &amp;lt;http://pages.cs.wisc.edu/~shanlu/paper/asplos092-zhou.pdf&amp;gt; [Accessed 23 November 2010].&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span id=&amp;quot;Foot5&amp;quot;&amp;gt;&amp;lt;sup&amp;gt;5&amp;lt;/sup&amp;gt; LI, T., LEBECK, A. R., AND SORIN, D. J. Spin detection hardware for improved management of multithreaded systems. IEEE Transactions on Parallel and Distributed Systems PDS-17, 6 (June 2006), 508–521.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span id=&amp;quot;Foot6&amp;quot;&amp;gt;&amp;lt;sup&amp;gt;6&amp;lt;/sup&amp;gt; Author, 2NA0. Title. [online] Company(optional) Available at: &amp;lt;http://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.121.1203&amp;amp;amp;rep=rep1&amp;amp;amp;type=pdf&amp;gt; [Accessed 23 November 2010].&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span id=&amp;quot;Foot7&amp;quot;&amp;gt;&amp;lt;sup&amp;gt;7&amp;lt;/sup&amp;gt; Author, 2NA0. Title. [online] Company(optional) Available at: &amp;lt;[http://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.121.1203&amp;amp;amp;rep=rep1&amp;amp;amp;type=pdf]&amp;gt; [Accessed 23 November 2010].&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span id=&amp;quot;Foot8&amp;quot;&amp;gt;&amp;lt;sup&amp;gt;8&amp;lt;/sup&amp;gt; Author, 2NA0. Title. [online] Company(optional) Available at: &amp;lt;[http://www.usenix.org/events/bsdcon/full_papers/baldwin/baldwin_html/node5.html]&amp;gt; [Accessed 23 November 2010].&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span id=&amp;quot;Foot9&amp;quot;&amp;gt;&amp;lt;sup&amp;gt;9&amp;lt;/sup&amp;gt; Author, 2010. Title. [online] Company(optional) Available at: &amp;lt;http://homeostasis.scs.carleton.ca/wiki/index.php/Basic_Synchronization_Principles&amp;gt; [Accessed 23 November 2010].&amp;lt;/span&amp;gt;&lt;/div&gt;</summary>
		<author><name>Slay</name></author>
	</entry>
	<entry>
		<id>https://homeostasis.scs.carleton.ca/wiki/index.php?title=Talk:COMP_3000_Essay_2_2010_Question_7&amp;diff=5587</id>
		<title>Talk:COMP 3000 Essay 2 2010 Question 7</title>
		<link rel="alternate" type="text/html" href="https://homeostasis.scs.carleton.ca/wiki/index.php?title=Talk:COMP_3000_Essay_2_2010_Question_7&amp;diff=5587"/>
		<updated>2010-11-26T00:15:06Z</updated>

		<summary type="html">&lt;p&gt;Slay: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&#039;&#039;&#039;Attendence. Please mark your name to say you&#039;re here&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Stephany Lay --[[User:Slay|Slay]] 19:45, 15 November 2010 (UTC)&lt;br /&gt;
&lt;br /&gt;
--[[User:Asoknack|Asoknack]] 16:00, 15 November 2010 (UTC)&lt;br /&gt;
&lt;br /&gt;
--[[User:Smcilroy|Smcilroy]] 18:43, 15 November 2010 (UTC)&lt;br /&gt;
&lt;br /&gt;
Lester Mundt&lt;br /&gt;
--[[User:Lmundt|Lmundt]] 18:58, 15 November 2010 (UTC)&lt;br /&gt;
&lt;br /&gt;
Thomas McMahon&lt;br /&gt;
--[[User:cha0s|cha0s]]&lt;br /&gt;
&lt;br /&gt;
Martin Kugler&lt;br /&gt;
--[[User:Mkugler|Mkugler]] 02:42, 18 November 2010 (UTC)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
So only 2 days left before it&#039;s due! I&#039;d like to hear what others are planning on contributing and when, since only myself and Slay have done any work on the actual essay. It would be nice to hear from you guys, even if its to say that your busy and are going to work on it on Thursday etc. etc.--[[User:Smcilroy|Smcilroy]] 22:05, 23 November 2010 (UTC)&lt;br /&gt;
&lt;br /&gt;
So, what&#039;s the plan for this?  How do we want to do this?  Given the duedate looming in 4 days we should probably get talking about it.  What are your thoughts?&lt;br /&gt;
--[[User:Mkugler|Mkugler]] 23:00, 21 November 2010 (UTC)&lt;br /&gt;
::Hey! So I added an intro and it covers the research problem to. I also added a bare bones skeleton of what we&#039;ll probably end up talking about. Personally, I think people should choose a couple of subsections and sections that they will work on and just put your name beside it. It seems to work best as people then have a sense of ownership and responsibility to that particular topic and aren&#039;t overwhelmed at editing the entire essay, at least for the beginning. That doesn&#039;t mean we can&#039;t all edit each others work though! I welcome any changes to the intro. Anyways, that&#039;s my 2 cents. --[[User:Smcilroy|Smcilroy]] 06:06, 22 November 2010 (UTC)&lt;br /&gt;
::As critique is our own opinion, we should discuss our thoughts. Having only one person writing that would not express everyone&#039;s opinions. --[[User:Slay|Slay]] 20:48, 22 November 2010 (UTC)&lt;br /&gt;
&lt;br /&gt;
Hey, gonna be fleshing out the Contribution section, probably the stuff under the SyncFinder heading.  Just wanted to give people a head&#039;s up so we don&#039;t waste time all doing the same thing.&lt;br /&gt;
--[[User:Mkugler|Mkugler]] 03:09, 24 November 2010 (UTC)&lt;br /&gt;
&lt;br /&gt;
I will do the Findings section for now then. I&#039;m unsure when I&#039;ll get to it though. I&#039;ll try for this weekend. --[[User:Slay|Slay]] 00:14, 26 November 2010 (UTC)&lt;/div&gt;</summary>
		<author><name>Slay</name></author>
	</entry>
	<entry>
		<id>https://homeostasis.scs.carleton.ca/wiki/index.php?title=Talk:COMP_3000_Essay_2_2010_Question_7&amp;diff=5586</id>
		<title>Talk:COMP 3000 Essay 2 2010 Question 7</title>
		<link rel="alternate" type="text/html" href="https://homeostasis.scs.carleton.ca/wiki/index.php?title=Talk:COMP_3000_Essay_2_2010_Question_7&amp;diff=5586"/>
		<updated>2010-11-26T00:14:57Z</updated>

		<summary type="html">&lt;p&gt;Slay: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&#039;&#039;&#039;Attendence. Please mark your name to say you&#039;re here&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Stephany Lay --[[User:Slay|Slay]] 19:45, 15 November 2010 (UTC)&lt;br /&gt;
&lt;br /&gt;
--[[User:Asoknack|Asoknack]] 16:00, 15 November 2010 (UTC)&lt;br /&gt;
&lt;br /&gt;
--[[User:Smcilroy|Smcilroy]] 18:43, 15 November 2010 (UTC)&lt;br /&gt;
&lt;br /&gt;
Lester Mundt&lt;br /&gt;
--[[User:Lmundt|Lmundt]] 18:58, 15 November 2010 (UTC)&lt;br /&gt;
&lt;br /&gt;
Thomas McMahon&lt;br /&gt;
--[[User:cha0s|cha0s]]&lt;br /&gt;
&lt;br /&gt;
Martin Kugler&lt;br /&gt;
--[[User:Mkugler|Mkugler]] 02:42, 18 November 2010 (UTC)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
So only 2 days left before it&#039;s due! I&#039;d like to hear what others are planning on contributing and when, since only myself and Slay have done any work on the actual essay. It would be nice to hear from you guys, even if its to say that your busy and are going to work on it on Thursday etc. etc.--[[User:Smcilroy|Smcilroy]] 22:05, 23 November 2010 (UTC)&lt;br /&gt;
&lt;br /&gt;
So, what&#039;s the plan for this?  How do we want to do this?  Given the duedate looming in 4 days we should probably get talking about it.  What are your thoughts?&lt;br /&gt;
--[[User:Mkugler|Mkugler]] 23:00, 21 November 2010 (UTC)&lt;br /&gt;
::Hey! So I added an intro and it covers the research problem to. I also added a bare bones skeleton of what we&#039;ll probably end up talking about. Personally, I think people should choose a couple of subsections and sections that they will work on and just put your name beside it. It seems to work best as people then have a sense of ownership and responsibility to that particular topic and aren&#039;t overwhelmed at editing the entire essay, at least for the beginning. That doesn&#039;t mean we can&#039;t all edit each others work though! I welcome any changes to the intro. Anyways, that&#039;s my 2 cents. --[[User:Smcilroy|Smcilroy]] 06:06, 22 November 2010 (UTC)&lt;br /&gt;
::As critique is our own opinion, we should discuss our thoughts. Having only one person writing that would not express everyone&#039;s opinions. --[[User:Slay|Slay]] 20:48, 22 November 2010 (UTC)&lt;br /&gt;
&lt;br /&gt;
Hey, gonna be fleshing out the Contribution section, probably the stuff under the SyncFinder heading.  Just wanted to give people a head&#039;s up so we don&#039;t waste time all doing the same thing.&lt;br /&gt;
--[[User:Mkugler|Mkugler]] 03:09, 24 November 2010 (UTC)&lt;br /&gt;
I will do the Findings section for now then. I&#039;m unsure when I&#039;ll get to it though. I&#039;ll try for this weekend. --[[User:Slay|Slay]] 00:14, 26 November 2010 (UTC)&lt;/div&gt;</summary>
		<author><name>Slay</name></author>
	</entry>
	<entry>
		<id>https://homeostasis.scs.carleton.ca/wiki/index.php?title=Talk:COMP_3000_Essay_2_2010_Question_7&amp;diff=5380</id>
		<title>Talk:COMP 3000 Essay 2 2010 Question 7</title>
		<link rel="alternate" type="text/html" href="https://homeostasis.scs.carleton.ca/wiki/index.php?title=Talk:COMP_3000_Essay_2_2010_Question_7&amp;diff=5380"/>
		<updated>2010-11-22T20:48:09Z</updated>

		<summary type="html">&lt;p&gt;Slay: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&#039;&#039;&#039;Attendence. Please mark your name to say you&#039;re here&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Stephany Lay --[[User:Slay|Slay]] 19:45, 15 November 2010 (UTC)&lt;br /&gt;
&lt;br /&gt;
--[[User:Asoknack|Asoknack]] 16:00, 15 November 2010 (UTC)&lt;br /&gt;
&lt;br /&gt;
--[[User:Smcilroy|Smcilroy]] 18:43, 15 November 2010 (UTC)&lt;br /&gt;
&lt;br /&gt;
Lester Mundt&lt;br /&gt;
--[[User:Lmundt|Lmundt]] 18:58, 15 November 2010 (UTC)&lt;br /&gt;
&lt;br /&gt;
Thomas McMahon&lt;br /&gt;
--[[User:cha0s|cha0s]]&lt;br /&gt;
&lt;br /&gt;
Martin Kugler&lt;br /&gt;
--[[User:Mkugler|Mkugler]] 02:42, 18 November 2010 (UTC)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
So, what&#039;s the plan for this?  How do we want to do this?  Given the duedate looming in 4 days we should probably get talking about it.  What are your thoughts?&lt;br /&gt;
--[[User:Mkugler|Mkugler]] 23:00, 21 November 2010 (UTC)&lt;br /&gt;
::Hey! So I added an intro and it covers the research problem to. I also added a bare bones skeleton of what we&#039;ll probably end up talking about. Personally, I think people should choose a couple of subsections and sections that they will work on and just put your name beside it. It seems to work best as people then have a sense of ownership and responsibility to that particular topic and aren&#039;t overwhelmed at editing the entire essay, at least for the beginning. That doesn&#039;t mean we can&#039;t all edit each others work though! I welcome any changes to the intro. Anyways, that&#039;s my 2 cents. --[[User:Smcilroy|Smcilroy]] 06:06, 22 November 2010 (UTC)&lt;br /&gt;
::As critique is our own opinion, we should discuss our thoughts. Having only one person writing that would not express everyone&#039;s opinions. --[[User:Slay|Slay]] 20:48, 22 November 2010 (UTC)&lt;/div&gt;</summary>
		<author><name>Slay</name></author>
	</entry>
	<entry>
		<id>https://homeostasis.scs.carleton.ca/wiki/index.php?title=COMP_3000_Essay_2_2010_Question_7&amp;diff=5379</id>
		<title>COMP 3000 Essay 2 2010 Question 7</title>
		<link rel="alternate" type="text/html" href="https://homeostasis.scs.carleton.ca/wiki/index.php?title=COMP_3000_Essay_2_2010_Question_7&amp;diff=5379"/>
		<updated>2010-11-22T20:44:29Z</updated>

		<summary type="html">&lt;p&gt;Slay: /* Critique */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Paper==&lt;br /&gt;
===Ad Hoc Synchronization Considered Harmful===&lt;br /&gt;
Weiwei Xiong&lt;br /&gt;
University of California, San Diego&lt;br /&gt;
&lt;br /&gt;
Soyeon Park, Jiaqi Zhang, Yuanyuan Zhou&lt;br /&gt;
University of Illinois at Urbana-Champaign&lt;br /&gt;
&lt;br /&gt;
Zhiqiang Ma&lt;br /&gt;
Intel&lt;br /&gt;
==Research Problem==&lt;br /&gt;
As the computer industry continues to shift towards multicore processors, concurrent programming and the use of multithreaded designs has increased to keep up with this growing trend. Multithreaded applications can be found in a variety of popular applications today as they take advantage of the multithreaded approach. However, the concepts behind concurrent programming bring with them a host of potential dangers in the form of race conditions and deadlocks resulting from bad programming design and threads accessing shared memory. Fortunately, there are well known and standard methods for dealing with these problems, i.e synchronization primitives. But in real world situations, due to a variety of reasons, as we shall see, programmers often implement their own &amp;quot;ad hoc&amp;quot; synchronizations that eschew common design standards. Ad hoc synchronizations are not well documented and are not discovered by traditional tools for race conditions that look for standard synchronization primitives.&lt;br /&gt;
&lt;br /&gt;
This paper addresses these concerns in two regards, first it details a thorough study of ad hoc synchronizations. It details their nature, dangers, impact on bug detection tools and prevalence in several major open-source applications. Secondly, it introduces SyncFinder, a program that detects all ad hoc synchronizations and automatically annotates the source code where ad hoc sychnronizations are found. This can see use in conjunction with other data race checkers to improve accuracy and to build custom tools for finding deadlocks and bad programming practices. &lt;br /&gt;
&lt;br /&gt;
With detailed analysis of ad hoc synchronization and study of their occurrences in several applications, the research ultimately concludes that they are harmful and should be removed. At the same time, SyncFinder detects and documents ad hoc synchronizations in the source code enabling programmers for the first time to easily track and remove them.&lt;br /&gt;
&lt;br /&gt;
==Background Concepts==&lt;br /&gt;
===Race conditions, deadlocks===&lt;br /&gt;
===Ad Hoc Synchronization===&lt;br /&gt;
===Synchronization primitives===&lt;br /&gt;
&lt;br /&gt;
==Contribution==&lt;br /&gt;
Intro to the study of the major applications and what they found&lt;br /&gt;
&lt;br /&gt;
===Findings===&lt;br /&gt;
1.they are prevalent, all applications had them&lt;br /&gt;
&lt;br /&gt;
2. hard to find&lt;br /&gt;
&lt;br /&gt;
3. error prone&lt;br /&gt;
&lt;br /&gt;
4.effect other bug detection&lt;br /&gt;
&lt;br /&gt;
5. They are diverse. Different forms, multiple exits and dependencies&lt;br /&gt;
&lt;br /&gt;
Reasons behind why people use ad hoc synchronization and possible improvements over them ie Synchronization primitives&lt;br /&gt;
&lt;br /&gt;
===SyncFinder===&lt;br /&gt;
Intro to what it is and what it does&lt;br /&gt;
====How it works====&lt;br /&gt;
1. find loops&lt;br /&gt;
&lt;br /&gt;
2. identify sync loops&lt;br /&gt;
&lt;br /&gt;
3. EDV analysis&lt;br /&gt;
&lt;br /&gt;
4. Pruning&lt;br /&gt;
&lt;br /&gt;
5. Annotation of found sync&lt;br /&gt;
&lt;br /&gt;
====Uses====&lt;br /&gt;
1. A tool to detect bad practices&lt;br /&gt;
&lt;br /&gt;
2. Extensions to data race detection&lt;br /&gt;
&lt;br /&gt;
====Accuracy====&lt;br /&gt;
&lt;br /&gt;
====Related Work and similar tools====&lt;br /&gt;
&lt;br /&gt;
==Critique==&lt;br /&gt;
1. Uses static approach, dynamic would be better&lt;br /&gt;
* As stated in the paper, dynamic introduces run-time overhead and is not guaranteed to find if not executed in the test cases&lt;br /&gt;
&lt;br /&gt;
2. not entirely accurate, some false positives.&lt;br /&gt;
&lt;br /&gt;
3. In terms of style, lots of unnecessary repetition&lt;br /&gt;
&lt;br /&gt;
Example footnote&amp;lt;sup&amp;gt;[[#Foot1|1]]&amp;lt;/sup&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==References==&lt;br /&gt;
&amp;lt;span id=&amp;quot;Foot1&amp;quot;&amp;gt;&amp;lt;sup&amp;gt;1&amp;lt;/sup&amp;gt; Author, 2010. Title. [online] Company(optional) Available at: &amp;lt;http://www.google.com&amp;gt; [Accessed 13 October 2010].&amp;lt;/span&amp;gt;&lt;/div&gt;</summary>
		<author><name>Slay</name></author>
	</entry>
	<entry>
		<id>https://homeostasis.scs.carleton.ca/wiki/index.php?title=Talk:COMP_3000_Essay_2_2010_Question_7&amp;diff=5041</id>
		<title>Talk:COMP 3000 Essay 2 2010 Question 7</title>
		<link rel="alternate" type="text/html" href="https://homeostasis.scs.carleton.ca/wiki/index.php?title=Talk:COMP_3000_Essay_2_2010_Question_7&amp;diff=5041"/>
		<updated>2010-11-16T15:11:14Z</updated>

		<summary type="html">&lt;p&gt;Slay: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&#039;&#039;&#039;Attendence. Please mark your name to say you&#039;re here&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Stephany Lay --[[User:Slay|Slay]] 19:45, 15 November 2010 (UTC)&lt;br /&gt;
&lt;br /&gt;
--[[User:Asoknack|Asoknack]] 16:00, 15 November 2010 (UTC)&lt;br /&gt;
&lt;br /&gt;
--[[User:Smcilroy|Smcilroy]] 18:43, 15 November 2010 (UTC)&lt;br /&gt;
&lt;br /&gt;
Lester Mundt&lt;br /&gt;
--[[User:Lmundt|Lmundt]] 18:58, 15 November 2010 (UTC)&lt;br /&gt;
&lt;br /&gt;
Thomas McMahon&lt;br /&gt;
--[[User:cha0s|cha0s]]&lt;br /&gt;
&lt;br /&gt;
Martin Kugler&lt;/div&gt;</summary>
		<author><name>Slay</name></author>
	</entry>
	<entry>
		<id>https://homeostasis.scs.carleton.ca/wiki/index.php?title=Talk:COMP_3000_Essay_2_2010_Question_7&amp;diff=5028</id>
		<title>Talk:COMP 3000 Essay 2 2010 Question 7</title>
		<link rel="alternate" type="text/html" href="https://homeostasis.scs.carleton.ca/wiki/index.php?title=Talk:COMP_3000_Essay_2_2010_Question_7&amp;diff=5028"/>
		<updated>2010-11-15T19:45:21Z</updated>

		<summary type="html">&lt;p&gt;Slay: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&#039;&#039;&#039;Attendence. Please mark your name to say you&#039;re here&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Stephany Lay --[[User:Slay|Slay]] 19:45, 15 November 2010 (UTC)&lt;br /&gt;
&lt;br /&gt;
--[[User:Asoknack|Asoknack]] 16:00, 15 November 2010 (UTC)&lt;br /&gt;
&lt;br /&gt;
--[[User:Smcilroy|Smcilroy]] 18:43, 15 November 2010 (UTC)&lt;br /&gt;
&lt;br /&gt;
Lester Mundt&lt;br /&gt;
--[[User:Lmundt|Lmundt]] 18:58, 15 November 2010 (UTC)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Thomas McMahon&lt;br /&gt;
--[[User:cha0s|cha0s]]&lt;/div&gt;</summary>
		<author><name>Slay</name></author>
	</entry>
	<entry>
		<id>https://homeostasis.scs.carleton.ca/wiki/index.php?title=COMP_3000_Essay_2_2010_Question_7&amp;diff=4950</id>
		<title>COMP 3000 Essay 2 2010 Question 7</title>
		<link rel="alternate" type="text/html" href="https://homeostasis.scs.carleton.ca/wiki/index.php?title=COMP_3000_Essay_2_2010_Question_7&amp;diff=4950"/>
		<updated>2010-11-14T19:41:13Z</updated>

		<summary type="html">&lt;p&gt;Slay: Created page with &amp;quot; ---- See discussion&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;br /&gt;
----&lt;br /&gt;
See discussion&lt;/div&gt;</summary>
		<author><name>Slay</name></author>
	</entry>
	<entry>
		<id>https://homeostasis.scs.carleton.ca/wiki/index.php?title=Talk:COMP_3000_Essay_2_2010_Question_7&amp;diff=4940</id>
		<title>Talk:COMP 3000 Essay 2 2010 Question 7</title>
		<link rel="alternate" type="text/html" href="https://homeostasis.scs.carleton.ca/wiki/index.php?title=Talk:COMP_3000_Essay_2_2010_Question_7&amp;diff=4940"/>
		<updated>2010-11-14T15:46:13Z</updated>

		<summary type="html">&lt;p&gt;Slay: Created page with &amp;quot;&amp;#039;&amp;#039;&amp;#039;Attendence. Please mark your name to say you&amp;#039;re here&amp;#039;&amp;#039;&amp;#039;  Stephany Lay&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&#039;&#039;&#039;Attendence. Please mark your name to say you&#039;re here&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Stephany Lay&lt;/div&gt;</summary>
		<author><name>Slay</name></author>
	</entry>
	<entry>
		<id>https://homeostasis.scs.carleton.ca/wiki/index.php?title=Talk:COMP_3000_Essay_1_2010_Question_1&amp;diff=3833</id>
		<title>Talk:COMP 3000 Essay 1 2010 Question 1</title>
		<link rel="alternate" type="text/html" href="https://homeostasis.scs.carleton.ca/wiki/index.php?title=Talk:COMP_3000_Essay_1_2010_Question_1&amp;diff=3833"/>
		<updated>2010-10-14T16:02:10Z</updated>

		<summary type="html">&lt;p&gt;Slay: /* three approaches */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Microkernel == &lt;br /&gt;
* Moving kernel functionality into processes contained in user space, e.g. file systems, drivers&lt;br /&gt;
* Keep basic functionality in kernel to handle sharing of resources&lt;br /&gt;
* Separation allows for manageability and security, corruption in one does not necessarily cause failure in system&lt;br /&gt;
* Large amount of moving from a process to Kernel to user space and back again, this is a costly operation.&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039; Microkernel &#039;&#039;&#039;&lt;br /&gt;
* try&#039;s to minimize the amount of software that is mandatory or required [7]&lt;br /&gt;
advantages of Microkernel&lt;br /&gt;
* favors a modular system structure [7]&lt;br /&gt;
* one failure of a program does not impact any other programs [7]&lt;br /&gt;
* can support more than one api or strategies since all programs are separated [7]&lt;br /&gt;
==== Microkernel Concepts ==== &lt;br /&gt;
* piece of code is allowed in the kernel only if moving it outside the kernel would adversely affect the system. [7]&lt;br /&gt;
* any subsystem program created must be independent of all other subsystem&#039;s, any subsystem that is used can guarantee this from all other subsystems [7]&lt;br /&gt;
===== Address Space =====&lt;br /&gt;
* a mapping that relates the physical page to the virtual page. [7]&lt;br /&gt;
* processor specific [7]&lt;br /&gt;
* hide&#039;s the hardware&#039;s concept of address space [7]&lt;br /&gt;
* based off the idea of recursion each subsystem has it&#039;s own address space [7]&lt;br /&gt;
* the micro kernel provides 3 operations [7]&lt;br /&gt;
** Grant [7]&lt;br /&gt;
*** allows the owner to give a page to a recipient, provided the recipient want&#039;s it the page is removed from the owner&#039;s address space and but in the recipients. [7]&lt;br /&gt;
*** must be available to the owner. [7]&lt;br /&gt;
** Map [7]&lt;br /&gt;
*** allows the user to share a page with a recipient [7]&lt;br /&gt;
*** page is not removed from the owner&#039;s address space. [7]&lt;br /&gt;
** Flush [7]&lt;br /&gt;
*** remove&#039;s the page from all recipients address space [7]&lt;br /&gt;
*** how does this work with Grant --[[User:Asoknack|Asoknack]] 19:10, 12 October 2010 (UTC)&lt;br /&gt;
* allows memory management and paging out side the kernel&lt;br /&gt;
* Map and flush is required for memory manger&#039;s and pagers [7]&lt;br /&gt;
* can be used to implement access right&#039;s [7]&lt;br /&gt;
* controlling I/O Right&#039;s and driver&#039;s are not done at kernel level [7]&lt;br /&gt;
&lt;br /&gt;
===== Thread&#039;s IPC =====&lt;br /&gt;
* Threads&lt;br /&gt;
** in the kernel [7]&lt;br /&gt;
** Since a thread has an address space , all changes to the thread need to be done by the kernel [7]&lt;br /&gt;
* IPC [7]&lt;br /&gt;
** in the kernel IPC&lt;br /&gt;
** grant and map also need IPC  (So buye the priciple above this has to be in the kernel)[7]&lt;br /&gt;
** basic way for sub process to communicate. [7]&lt;br /&gt;
* Interrupts&lt;br /&gt;
** partially in the kernel [7]&lt;br /&gt;
** hard ware is a set of thread&#039;s which are empty except for there unique sender id [7]&lt;br /&gt;
** transformation of the message to the interrupt is done in the kernel [7]&lt;br /&gt;
** the kernel is not involved in device - specific interrupt&#039;s and does not understand the interrupt. [7]&lt;br /&gt;
*** resting the interrupt is done at user level [7]&lt;br /&gt;
** if a privileged command is need it is done implicitly the next time an IPC command is sent from the device [7]&lt;br /&gt;
&lt;br /&gt;
===== Unique Identifiers =====&lt;br /&gt;
&lt;br /&gt;
== Virtual Machine ==&lt;br /&gt;
* Partitioning or virtualizing resources among OS virtualization running on top of host OS&lt;br /&gt;
* Virtualized OS believe running on full machine on its own&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
System Level Virtualization&lt;br /&gt;
&lt;br /&gt;
=== VMM ===&lt;br /&gt;
* stands for Virtual Machine Monitor, also known as the hyper-visor[4]&lt;br /&gt;
* responsible for virtualization of hardware(mapping physical to virtual) and the VM that run on top of the virtuallized hardware [4]&lt;br /&gt;
* usually a small os with no drivers , so it is coupled with a linux distro that provides device / hardware access [4]&lt;br /&gt;
** the os that the VMM is using for driver&#039;s is called the hostOS [6]&lt;br /&gt;
*the hostOS provides login and physical access to the hardware as well as management for the VMM [6]&lt;br /&gt;
=== VM ===&lt;br /&gt;
* the OS that the vm is running is called the guestOS [6]&lt;br /&gt;
* the guestOS only sees resources that have been allocated to the VM [6]&lt;br /&gt;
==== three approaches ====&lt;br /&gt;
*Type I virtualization [5]&lt;br /&gt;
** runs off the physical hardware [4]&lt;br /&gt;
** Isolation of the guestOs from the hardware is done threw processe level protection meachnism[6]&lt;br /&gt;
*** ring 0 = VMM [6]&lt;br /&gt;
*** ring 1 = VM [6]&lt;br /&gt;
*** this means all instructions from the VM must go threw the VMM [6]&lt;br /&gt;
** since there can be multiple VM&#039;s on a computer the scheduling is done by the VMM [6]&lt;br /&gt;
** on boot the VMM creates a hardware platform for the VM [6]&lt;br /&gt;
** load&#039;s the VM kernel into virtual memory and then boot&#039;s it like a regular computer [6]&lt;br /&gt;
** ex. Xen [4]&lt;br /&gt;
*Type II virtualization [5]&lt;br /&gt;
** run off the host Os [4]&lt;br /&gt;
** ex. VMware , QEMU [4]&lt;br /&gt;
* Para-virtualization [6]&lt;br /&gt;
** Similar to Type but use the HostOs for Device driver access [6]&lt;br /&gt;
** Provide a virtualization that is similar to hardware [From the paper posted, no citation yet]&lt;br /&gt;
** GuestOS and Hypervisor work together to improve performance&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
==== ====&lt;br /&gt;
(Not complete but most of article 9)&lt;br /&gt;
Classical Virtualization&lt;br /&gt;
* VMMs allow programs in virtual environments to run natively other than resource usage&lt;br /&gt;
** Dominant instructions executed directly on cpu&lt;br /&gt;
** vmm completely controls system resources&lt;br /&gt;
** often need to emulate every native instruction which would severely effect the performance&lt;br /&gt;
** sensitive instruction that violate safety and encapsulation&lt;br /&gt;
** vmm handles them as priviledged instructions&lt;br /&gt;
&lt;br /&gt;
x86 Virtualization&lt;br /&gt;
* virtualization in personal work stations rather than mainframes&lt;br /&gt;
** rings that allow isolation between virtual machines&lt;br /&gt;
** most privileged in ring 0 and least in ring 3. The operating system runs in ring 0 and user apps in ring 3&lt;br /&gt;
*** vmm in ring 0 and vms in lesser privilege rings (1 or 3)&lt;br /&gt;
*** guestOS believes its in ring 0&lt;br /&gt;
* address space compression, where to run the VMM&lt;br /&gt;
** if run using guest address space, guest can find out its virtualized or compromise the isolation&lt;br /&gt;
* does not trap all sensitive instructions but can handle them, violates classical virtualization description&lt;br /&gt;
* some privileged access fail without faulting&lt;br /&gt;
* interrupt virtualization - VMM handles AND guestOS handles&lt;br /&gt;
* binary translation - improve performance&lt;br /&gt;
* rewriting instructions and trapping before problems arrise&lt;br /&gt;
&lt;br /&gt;
Paravirtualization&lt;br /&gt;
* guestOS become exposed to vm information so that the guest is aware that it is virtualized and can make decisions based on this&lt;br /&gt;
* allows to avoid problem instructions&lt;br /&gt;
* Xen&lt;br /&gt;
* guestOS must be modified and is not natively running&lt;br /&gt;
**works with the hostOS to run efficiently&lt;br /&gt;
&lt;br /&gt;
VMM types&lt;br /&gt;
* hostedVMM - executes in hostOS and uses the drivers and support of the OS&lt;br /&gt;
* Stand-aloneVMM - runs directly on hardware and uses it&#039;s own drivers and services&lt;br /&gt;
* hybridVMM - runs a serviceOS where requests to hardware go through (I/O)&lt;br /&gt;
&lt;br /&gt;
Device Emulation&lt;br /&gt;
* implement real hardware in software&lt;br /&gt;
* completely virtual device that the guest interacts with&lt;br /&gt;
* mapped to physical hardware that handles the interactions but the emulation allows conversion&lt;br /&gt;
* allows the vm to be easily migrated between machines as it does not rely on the physical hardware&lt;br /&gt;
* allows having multiple vms and simplifies sharing (multiplexing)&lt;br /&gt;
* poor performance as the vmm needs to do a lot to virtulize the machine&lt;br /&gt;
&lt;br /&gt;
Paravirtualization&lt;br /&gt;
* modified guestOS to cooperate with VMM &lt;br /&gt;
* VMM does not have to do everything to handle device drivers&lt;br /&gt;
* not everything can be paravirtualized&lt;br /&gt;
* proprietary os and device drivers can&#039;t be paravirtualized&lt;br /&gt;
* still allows an increase in performance&lt;br /&gt;
* eventing or callback mechanism&lt;br /&gt;
** guestOS modifies interrupt mechs&lt;br /&gt;
* modifications are not applicable to all guestOS&lt;br /&gt;
&lt;br /&gt;
Dedicated Devices&lt;br /&gt;
* does not virtualize device but assigns directly to guest vm&lt;br /&gt;
* uses guest&#039;s drivers instead of host&lt;br /&gt;
* simplifiest vmm by removing handing of i/o securily&lt;br /&gt;
* limited physical devices that can be dedicated&lt;br /&gt;
* dificult to migrate vm as it depends on the pairing with this resource&lt;br /&gt;
* elims over-head of virtualization and simplicity in vmm&lt;br /&gt;
* direct memory access not supported&lt;br /&gt;
&lt;br /&gt;
== Exokernel ==&lt;br /&gt;
* Micro-kernel architecture with limited abstractions, ask for resource, get resource not resource abstraction&lt;br /&gt;
* Less functionality provided by kernel, security and handling of resource sharing&lt;br /&gt;
* Once application receives resource, it can use it as it wishes/in control&lt;br /&gt;
* Keep the basic kernel to handle allocating resources and sharing rather than developing straight to the hardware&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
* multiplex resources securely providing protection to mutual distrustful application threw the use of secure binding&#039;s[1]&lt;br /&gt;
* Goal of the exokernel is to give LibOS maximum freedom with out allowing them to interfere with each other. to do this the exokernel separates protection from management in doing this it provide 3 important tasks[1]&lt;br /&gt;
** tracking ownership of resources [1]&lt;br /&gt;
** ensuring protection by guarding all resource usage and binding points (not to shure what binding points are)[1]&lt;br /&gt;
** revoking access to the resources [1]&lt;br /&gt;
* LibrayOS (LibOs)&lt;br /&gt;
** Reduces the number of kernel crossings[1]&lt;br /&gt;
** Not trusted by the exokernel so can be trusted by the application , Example given is a bad parameter passed to the LibOs only the application is affected.[1] (So LibOs cant interact with kernel ???)&lt;br /&gt;
** Any application running on the Exokernel can change the LibrayOs freely [1]&lt;br /&gt;
** Application that use LibOS that implement standard interfaces (POSIX) will be portable on any system with the same interface [1]&lt;br /&gt;
** LibOs can be made portable if it is designed to interact with a low-level machine independent level to hide hardware details [1]&lt;br /&gt;
&lt;br /&gt;
=== Exokernel Design ===&lt;br /&gt;
==== Design Principles ====&lt;br /&gt;
*Securely Expose Hardware [1]&lt;br /&gt;
** an Exokernel tries to create low level primitives that the hardware resources can be accessed from, this also includes interrupts,exceptions [1]&lt;br /&gt;
** the exokernel also export privileged instructions to the LibOS so that traditional OS abstractions can be implemented (eg Process , address pace)[1]&lt;br /&gt;
** Exokernels should avoid resource management except when required protection ( allocation , revocation , ownership)[1]&lt;br /&gt;
** application based resource management is the best way to build flexible efficient flexible systems [1]&lt;br /&gt;
*Expose allocation[1]&lt;br /&gt;
** allow LibOs to request physical resources [1]&lt;br /&gt;
** resource allocation should not be automatic, the LibOS should participate in every single allocation decision [1]&lt;br /&gt;
*Expose Names[1]&lt;br /&gt;
** Use physical name&#039;s when ever possible[3] (not to sure what physical names are, I think it is as simple as what the hardware is called)--[[User:Asoknack|Asoknack]] 20:27, 9 October 2010 (UTC)&lt;br /&gt;
** Physical names capture useful information [3]&lt;br /&gt;
*** safer than and less resource intensive than virtual names as no translations are needed[3]&lt;br /&gt;
*Expose Revocation [1]&lt;br /&gt;
** use visible revocation protocol [1]&lt;br /&gt;
** allows well behaved LibOS to preform application level resource management [1]&lt;br /&gt;
** Visible revocation allows the LibOS to choose what instance of the resource to release[1](Visible means that when revocation happens the exokernel tell the LibOS that resource is being revoked)&lt;br /&gt;
&#039;&#039;&#039; Policy &#039;&#039;&#039;&lt;br /&gt;
* LibOS handle resource policy decisions&lt;br /&gt;
* Exokernels have a policy to decided between competing LibOS (Priority , share of resources)&lt;br /&gt;
** it enforces this threw allocation and deallocation (every thing can achieved threw this even what block to write and such)&lt;br /&gt;
&lt;br /&gt;
==== Secure Bindings ====&lt;br /&gt;
* Used by the exokernel to allow the LibOS to bind to resources [1]&lt;br /&gt;
* Allows the separation of protection and resource use [1]&lt;br /&gt;
* only checks authorization during bind time [1]&lt;br /&gt;
** Application&#039;s with complex needs for resources only authorized during bind.[1]&lt;br /&gt;
* access checking is done during access time and there is no need to understand complex resources needs during access[1]&lt;br /&gt;
** (this means that the exokernel checks once to make sure an application has authorization once approved, when the application tries to use the resource the exokernel is only concerned about policy conflict&#039;s)--[[User:Asoknack|Asoknack]] 18:20, 9 October 2010 (UTC)&lt;br /&gt;
** allows the kernel to protect the resources with out understanding what the resource is [1]&lt;br /&gt;
*three way&#039;s to implement&lt;br /&gt;
* Hardware Mechanisms [1]&lt;br /&gt;
* Software caching [1]&lt;br /&gt;
* Downloading application code [1]&lt;br /&gt;
&#039;&#039;&#039; Downloading Code to the Kernel &#039;&#039;&#039;&lt;br /&gt;
* used to implement secure bindings , and improve performance[1]&lt;br /&gt;
** eliminate the number of kernel crossings [1]&lt;br /&gt;
** downloaded code can be run with out the application to be scheduled [2]&lt;br /&gt;
==== Visible Resource Revocation ====&lt;br /&gt;
* Used for most resources [1]&lt;br /&gt;
** allows for LibOS to help with deallocation [1]&lt;br /&gt;
** LibOS are able to garner what resources are scare [1]&lt;br /&gt;
* Slower than Invisible as application involvement is required [1]&lt;br /&gt;
** ex of when invisible is used is Processor addressing-context identifiers [1]&lt;br /&gt;
==== Abort Protocol ====&lt;br /&gt;
* allows the exokernel to take resources away from the LibOS [1]&lt;br /&gt;
* used when the LibOS fails to respond to the revocation request [1]&lt;br /&gt;
* Exokernel must be careful not to delete as the LibOS might need to write some system critical data to the resource [1]&lt;br /&gt;
&lt;br /&gt;
== Comparisons  ==&lt;br /&gt;
====Exokernel/Microkernel====&lt;br /&gt;
&#039;&#039;&#039;Similarities&#039;&#039;&#039;&lt;br /&gt;
* Limited functionality in kernel&lt;br /&gt;
** functionality in kernel to handle sharing of resources and security&lt;br /&gt;
** avoids programming directly to hardware which creates a dependency&lt;br /&gt;
* Additional functionality provided in user space as processes&lt;br /&gt;
&#039;&#039;&#039;Differences&#039;&#039;&#039;&lt;br /&gt;
* Minimal abstractions provided by the kernel&lt;br /&gt;
** Applications given more power in exokernel&lt;br /&gt;
&lt;br /&gt;
====Exokernel/VM====&lt;br /&gt;
&#039;&#039;&#039;Similarities&#039;&#039;&#039;&lt;br /&gt;
* Idea of partitioning resources between applications/OSs&lt;br /&gt;
* &amp;quot;Control&amp;quot; of resource given&lt;br /&gt;
* Isolation from other applications/OSs&lt;br /&gt;
&#039;&#039;&#039;Differences&#039;&#039;&#039;&lt;br /&gt;
* Exokernel runs applications, VM runs OS&lt;br /&gt;
* VM uses a hostOS and guestOSs run on top&lt;br /&gt;
* Virtualization on VMs, Exokernel deals with real resources&lt;br /&gt;
* VM hides a lot of information because it emulates. Exokernel does not.&lt;br /&gt;
&lt;br /&gt;
====Microkernel/VM====&lt;br /&gt;
&#039;&#039;&#039;Differences&#039;&#039;&#039;&lt;br /&gt;
* With a virtual machine, you are not virtualizing apps like with a microkernel but virtualizing an entire Operating System.&lt;br /&gt;
* This can be costly but the benefits are that it&#039;s easier and all the standard OS features are available.&lt;br /&gt;
&lt;br /&gt;
== References ==&lt;br /&gt;
[1]&amp;lt;nowiki&amp;gt; Engler, D. R., Kaashoek, M. F., and O&#039;Toole, J. 1995. Exokernel: an operating system architecture for application-level resource management. In Proceedings of the Fifteenth ACM Symposium on Operating Systems Principles  (Copper Mountain, Colorado, United States, December 03 - 06, 1995). M. B. Jones, Ed. SOSP &#039;95. ACM, New York, NY, 251-266. DOI= http://doi.acm.org/10.1145/224056.224076 &amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[2]&amp;lt;nowiki&amp;gt;Engler, Dawson R. &amp;quot;The Exokernel Operating System Architecture.&amp;quot; Diss. Massachusetts Institute of Technology, Dept. of Electrical Engineering and Computer Science, 1998. Web. 9 Oct. 2010. &amp;lt;http://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.61.5054&amp;amp;rep=rep1&amp;amp;type=pdf&amp;gt;.&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[3]&amp;lt;nowiki&amp;gt;Kaashoek, M. F., Engler, D. R., Ganger, G. R., Briceño, H. M., Hunt, R., Mazières, D., Pinckney, T., Grimm, R., Jannotti, J., and Mackenzie, K. 1997. Application performance and flexibility on exokernel systems. In Proceedings of the Sixteenth ACM Symposium on Operating Systems Principles  (Saint Malo, France, October 05 - 08, 1997). W. M. Waite, Ed. SOSP &#039;97. ACM, New York, NY, 52-65. DOI= http://doi.acm.org/10.1145/268998.266644 &amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[4]&amp;lt;nowiki&amp;gt;Vallee, G.; Naughton, T.; Engelmann, C.; Hong Ong; Scott, S.L.; , &amp;quot;System-Level Virtualization for High Performance Computing,&amp;quot; Parallel, Distributed and Network-Based Processing, 2008. PDP 2008. 16th Euromicro Conference on , vol., no., pp.636-643, 13-15 Feb. 2008&lt;br /&gt;
DOI= http://doi.acm.org/10.1109/PDP.2008.85 &amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[5]&amp;lt;nowiki&amp;gt;Goldberg, R. P. 1973. Architecture of virtual machines. In Proceedings of the Workshop on Virtual Computer Systems  (Cambridge, Massachusetts, United States, March 26 - 27, 1973). ACM, New York, NY, 74-112. DOI= http://doi.acm.org/10.1145/800122.803950 &amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[6]&amp;lt;nowiki&amp;gt;Vallee, G., Naughton, T., and Scott, S. L. 2007. System management software for virtual environments. In Proceedings of the 4th international Conference on Computing Frontiers (Ischia, Italy, May 07 - 09, 2007). CF &#039;07. ACM, New York, NY, 153-160. DOI= http://doi.acm.org/10.1145/1242531.1242555 &amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[7]&amp;lt;nowiki&amp;gt;Liedtke, J. 1995. On micro-kernel construction. In Proceedings of the Fifteenth ACM Symposium on Operating Systems Principles  (Copper Mountain, Colorado, United States, December 03 - 06, 1995). M. B. Jones, Ed. SOSP &#039;95. ACM, New York, NY, 237-250. DOI= http://doi.acm.org/10.1145/224056.224075 &amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[8]&amp;lt;nowiki&amp;gt;Microkernel verses monolithic kernel&lt;br /&gt;
http://www.vmars.tuwien.ac.at/courses/akti12/journal/04ss/article_04ss_Roch.pdf  - Roch&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
I will site it/reference it better later&lt;br /&gt;
&lt;br /&gt;
[9]Fisher-Ogden J. 2006. Hardware Support for Efficient Virtualization. University of California, San Diego. http://cseweb.ucsd.edu/~jfisherogden/hardwareVirt.pdf&lt;br /&gt;
&lt;br /&gt;
Not completely sure of the citation style used above.&lt;br /&gt;
&lt;br /&gt;
== Unsorted ==&lt;br /&gt;
An overview of exokernels,virtual machines, microkernels *[http://www2.supchurch.org:10999/files/school/classes/CSCI4730/Lectures/grad-structures.ppt Overview](Power Point)&amp;lt;br&amp;gt;&lt;br /&gt;
Should not be used as a source but an overview.&lt;br /&gt;
&lt;br /&gt;
The original paper on [http://portal.acm.org/citation.cfm?id=224076 Exokernels] --[[User:Gautam|Gautam]] 22:39, 6 October 2010 (UTC)&lt;br /&gt;
&lt;br /&gt;
Exokernel-&lt;br /&gt;
Minimalistic abstractions for developers&lt;br /&gt;
Exokernels can be seen as a good compromise between virtual machines and microkernels in the sense that exokernels can give that low level access to developers similar to direct access through a protected layer and at the same time can contain enough hardware abstraction to allow similar benefit of hiding the hardware resources to application programs.&lt;br /&gt;
Exokernel – fewest hardware abstractions to developer&lt;br /&gt;
Microkernel - is the near-minimum amount of software that can provide the mechanisms needed to implement an operating system&lt;br /&gt;
Virtual machine is a simulation of any or devices requested by an application program&lt;br /&gt;
Exokenel – I’ve got a sound card&lt;br /&gt;
Virtual Machine – I’ve got the sound card you’re looking for, perfect virtual match&lt;br /&gt;
Microkernel – I’ve got sound card that plays Khazikstan sound format only&lt;br /&gt;
MicroKernel - Very small, very predictable, good for schedualing (QNX is a microkernel - POSIX compatable, benefits of running linux software like modern browsers) &lt;br /&gt;
&lt;br /&gt;
This is some ideas I&#039;ve got on this question, please contribute below&lt;br /&gt;
-Rovic&lt;br /&gt;
&lt;br /&gt;
Outlining some main features here as I see them.&lt;br /&gt;
&lt;br /&gt;
I found that the exokernel was an even lower-level design than the microkernel, closer to the hardware without abstraction. They have the same architecture with the basic functionality contained in the kernel to manage everyone. As the exokernel &amp;quot;gives&amp;quot; the resource to the application it can use the resource in isolation of other applications (until forced to shared) much like VMs receive their resources, either partitioned or virtualized, and execute as if its running on its own machine. There is this similar notion of partitioning the resources among applications/OS and allowing them to take control of what they have. &lt;br /&gt;
&lt;br /&gt;
I&#039;ll locate some references later on. --[[User:Slay|Slay]] 15:00, 7 October 2010 (UTC)&lt;br /&gt;
&lt;br /&gt;
I&#039;m just going to post my answer for question 1 on the individuel assignment and hope it helps. --[[User:Aellebla|Aellebla]] 15:06, 12 October 2010 (UTC)&lt;br /&gt;
&lt;br /&gt;
The design of the micro kernel was to take everything they could out of the Kernel and put it into a process. For ex, networking would be put into a process instead of staying in the kernel. The micro kernel dev&#039;s tried to keep lots of things in user space for efficiency. But one major problem with this is there would be a large amount of moving from a process to the kernel to user space and back again and this is a costly, non efficient process.It was an application specific OS, there was no multiplexing. With a virtual machine you are not virtualizing apps like with a microkernel but virtualizing an entire Operating System. This is very heavy however but the benefits are that it‟s easy and all the standard OS features are there whereas in a microkernel setup they would not all be there and this can be seen as a compromise.&lt;br /&gt;
&lt;br /&gt;
Exokernels can be seen as a compromise to virtual machines and microkernels because virtual machines emulate and exokernels do not. When you emulate something you hide a lot of the actual information because you wouldn‟t be able to see the „real‟ hardware. If we look at a virtual box setup running Linux, and we go look at all the hardware, it will be displayed as fake hardware.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Maybe we can have an introduction - paragraph or so on each type - then similarities - differences - and the compromise.  I am going to do some research and writing this weekend and I will put some up  -- Jslonosky&lt;br /&gt;
&lt;br /&gt;
btw in my page (i guess you can call it that) i have some resources i have found  --[[User:Asoknack|Asoknack]] 15:50, 8 October 2010 (UTC)&lt;br /&gt;
- Wow, nice man. I will go ahead and write up the descriptive paragraphs on each kernel and virtual machine if no one minds. --Jslonosky&lt;br /&gt;
&lt;br /&gt;
I think we should divide up the paragraphs and proofread each others instead. (Are there only 4 of us?) I don&#039;t have much time to work on this today though but I&#039;ll try to work on it tomorrow morning. - Slay&lt;br /&gt;
&lt;br /&gt;
Sure guy.  That sounds good.  There should be 5 or 6 of us though.. . Oh well. Their loss.  I will do some before or after work today. Ill start with Microkernel since there is not a large amount of info here, and so we don&#039;t overlap each other - JSlonosky&lt;br /&gt;
&lt;br /&gt;
yeah i think there was more like 7 of us btw if any one has any more information feel free to add it would be nice if you add the references so that way citing is really easy on  acm.org it will auto give you the citation info (where it says Display Formats click on ACM Ref  and new window with the citation info auto pop&#039;s up) --[[User:Asoknack|Asoknack]] 02:28, 11 October 2010 (UTC)&lt;br /&gt;
&lt;br /&gt;
I added an outline of the similarities and differences. Add any more that I missed. These are from observations so I don&#039;t have any resources. -Slay&lt;br /&gt;
That&#039;s probably fine.  Our textbook probably outlines some of them, so I am sure we can find a few there - JSlonosky&lt;br /&gt;
&lt;br /&gt;
Talked to the teacher today and for VM he said we should focus on the implementation such as Xen and VMware , he also said to talk about para virtualization --[[User:Asoknack|Asoknack]] 18:42, 12 October 2010 (UTC)&lt;br /&gt;
&lt;br /&gt;
A paper about emulation and paravirtualization [http://portal.acm.org/citation.cfm?id=1189289&amp;amp;coll=GUIDE&amp;amp;dl=GUIDE&amp;amp;CFID=105648137&amp;amp;CFTOKEN=47153176&amp;amp;ret=1#Fulltext link] - Slay&lt;br /&gt;
&lt;br /&gt;
Oh no big words.  Sorry about the Microkernels not done yet.  Working on an outline now.  Finally found how to access the ACM through carleton.  Gawd. &lt;br /&gt;
I am planning an outline, quick bit about kernels in general, (maybe mention monolith kernels?), and what microkernels do.&lt;br /&gt;
I see the microkernel outline info and a reference ( Whomever did that == hero: true) about the scheduling and the Memory management.  Should that be included in kernels in general and then mention what microkernels build upon/change? - JSlonosky&lt;br /&gt;
&lt;br /&gt;
Sorry late to the party here. My mistake was not checking the discussion page when I checked in. I don&#039;t want to trample anyone&#039;s current work but I don&#039;t see any work on the final essay done. I would love to help just need to know where I can step in so as to not screw anyone else up. -- [[User:Cling|Cling]]&lt;br /&gt;
&lt;br /&gt;
I don&#039;t think I&#039;ll be able to write up something for the final essay, even though I suggested splitting it. I&#039;ll do research tonight though on the paravirtualization. If I find the time, I&#039;ll try to write something. Sorry about that. --[[User:Slay|Slay]] 21:52, 13 October 2010 (UTC)&lt;br /&gt;
&lt;br /&gt;
We all have 3004 to do too, man.  I do not think anyone has chosen to do Virtual Machine section yet, or the Exokernel itself. But the contrast paragraph and the intro is chosen, and intro is done.  Microkernel and kernel will be done in a hour I hope. -- JSlonosky&lt;br /&gt;
&lt;br /&gt;
I can attempt to write up anything, the issue is I don&#039;t have any context on what to write, how do I tie it in to the rest of the essay? I only have a Japanese Quiz tomorrow morning then I should be good to write anything up for the rest of the day. As someone who has already written part of the essay, and assuming I attempt the exokernel section, how much do you think I should write? Should it just be about exokernel or should there be comparisons to the other topics? Thanks --[[User:Cling|Cling]] 23:14, 13 October 2010 (UTC)&lt;br /&gt;
&lt;br /&gt;
Go with the Exokernel itself.  Slade is getting off work in a hour and we can double check what he is doing then.  We can put it together tomorrow sometime, and fill in the other stuff. - JSLonosky&lt;br /&gt;
&lt;br /&gt;
I&#039;ll attempt to work on VM tonight, then. I would feel so bad if I didn&#039;t write anything. -Slay&lt;br /&gt;
&lt;br /&gt;
Still wondering how much to write, I think we should decide on a decent word count or length so we don&#039;t have one short section (which would probably be mine) and/or one massive section that dwarfs all the others. If anyone has already written a section could you post your word count so we can aim to be around there, it would obviously be just a recommendation but it&#039;s just better to be on the safe side and have everything uniform. I haven&#039;t seen any formal requirements for the essay but I could be wrong, I also haven&#039;t been to class in a while. --[[User:Cling|Cling]] 23:33, 13 October 2010 (UTC)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Yeah Slay, VM probably doesnt have much to write about.  Get something down, and we can go over it.  CLing, Just write what you think.  There is not a lot to go over if I write kernel/microkernel well enough.  What is a exokernel?  exokernel was an even lower-level design than the microkernel, closer to the hardware without abstraction, basically (As said by Slade). I will probably end up with 500 or a bit more words. -- JSlonosky&lt;br /&gt;
&lt;br /&gt;
Sound off!&lt;br /&gt;
&lt;br /&gt;
Who&#039;s actually reading this? Add your name to the list...&lt;br /&gt;
&lt;br /&gt;
Rovic P.&lt;br /&gt;
Jon Slonosky&lt;br /&gt;
Corey Ling&lt;br /&gt;
Steph Lay&lt;br /&gt;
Aaron .L&lt;br /&gt;
&lt;br /&gt;
== The Essay ==&lt;br /&gt;
&lt;br /&gt;
Let&#039;s actually breakdown the essay into components then write it here.&lt;br /&gt;
&lt;br /&gt;
I&#039;d like to go along the premise that microkernels and and virtual machines are &amp;quot;weaker&amp;quot; than exokernels in design for the essay. If anyone has any objections, add it here. &lt;br /&gt;
&lt;br /&gt;
-Slade&lt;br /&gt;
&lt;br /&gt;
 what do you mean by &amp;quot;weaker&amp;quot;(i think you mean exokernels&#039; takes the best of both worlds ) --[[User:Asoknack|Asoknack]] 02:45, 13 October 2010 (UTC)&lt;br /&gt;
&lt;br /&gt;
What I mean by weaker is that we should focus on the things microkernels and virtual machines may not do as well compared to a system based off an exokernel design and then focus on how an exokenenel can take the best of both worlds. Please choose which section you will work on, that&#039;s not to say it&#039;ll be the only part you do, but rather we&#039;ll all contribute to each part please. 1 day left.&lt;br /&gt;
-Slade&lt;br /&gt;
&lt;br /&gt;
...to the extent that exokernels be seen as a compromise between virtual machines and microkernels. &lt;br /&gt;
-I&#039;ll work on the initial intro. -Slade&lt;br /&gt;
&lt;br /&gt;
3 paragraphs that prove it&lt;br /&gt;
Explain how the key design characteristics of these three system architectures compare with each other. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
intro/thesis statement -Rovic P.&lt;br /&gt;
&lt;br /&gt;
In Computer Science, the kernel is the component at the center of  the majority of operating systems. The kernel is a bridge for applications to access the hardware level. It is responsible for managing the system&#039;s resources such as memory, disk storage, task management and networking. We are comparing Exokernels to Microkernels and Virtual Machines by looking at how the kernel goes about such management and its connections. In the Exokernel conceptual model, we can see exokernels become much smaller than microkernels because as this design shows, they are tiny and strive to keep functionality limited to protection and multiplexing of resources. The Virtual Machine Implementation of virtualizing all devices on the system may provide compatibility, but it also adds a layer of complexity within the system. This is less efficient than a real machine as it accesses the hardware indirectly. It can be observed by examining how the exokernel provides low level hardware access and provides custom abstraction to those devices. This is done in order to improve program performance as opposed to a VM&#039;s implementation. The exokernel concept has a design that can take the better concepts of microkernels and virtual machines to the extent that exokernels can be seen as a compromise between a virtual machine and a microkernel.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Paragraph 1 -Microkernel -Jon S.&lt;br /&gt;
&lt;br /&gt;
The kernel is the most important part of an operating system. An operating system could not function without the kernel.  &lt;br /&gt;
&lt;br /&gt;
A kernel is the lowest level section of an operating system.   Within a system, it has the most privileges.  It runs along side of the ‘user space’. It is in the ‘user space’ where a user has access. This is also where the user can run its applications and libraries.[8]  This leaves the kernel with the need to manage the other necessary processes. For example, the kernel could manage the File Systems and complete process scheduling.  The kernel is layered with the most authoritative process on its lowest level.[8]  A monolithic kernel, which is a kernel that contains all mandatory processes within itself, was the common kernel type of the earlier versions of today’s operating systems utilized.  However, this architecture had problems. [8]  If the kernel needed to be updated with more code, or a change in the system, the entire kernel would need to be compiled. Therefore, due to the amount of processes within it, it would take an inefficient amount of time.  Here, a microkernel becomes practical.&lt;br /&gt;
&lt;br /&gt;
The concept of a microkernel, is to reduce  the code within the kernel. The microkernel is only included in the kernel if it would impact the system. There are a variety of ways the system could be affected if a microkernel were to be implemented, for example, there would be increased performance and efficiency. [7] So, a microkernel is a kernel that has a reduced amount of mandatory software within itself.  This means that it contains less software that it has to manage, and has a reduced size.  A microkernel that emerged at the end of the 1980’s to the early 1990’s has the structure that processes like the File Systems and the Drivers are removed from it, leaving the kernel with process control and input/out control, and interrupts.  [8] This new structure makes the system much more modular, and easier to provide solutions.  If a driver must be patched or upgraded, the kernel does not need to be recompiled.  [7] The old driver can be removed, and while the device waits for the system to recognize it, the operating system replaces the driver.  This lets real-time updating, and it can be done while the computer is still functional.  This can reduce the complete crash of the system.  If a device fails, the kernel will not crash itself, like a monolithic kernel would.  The microkernel can reload the driver of the device that failed and continue functioning.  [7]  &lt;br /&gt;
&lt;br /&gt;
Want more on the scheduling?  I can do that if wanted. -key note on exokernel&#039;s mutiplexing vs microkernel&#039;s messaging, exo more efficient so perhaps running with the idea that messaging b/w processes not necessarily the ideal way need to also start outlaying weaknesses in the design as well in order to play up the idea that an exokernel just does it better -Slade&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Paragraph 2 -Virtual Machine -Steph L.&lt;br /&gt;
&lt;br /&gt;
A Virtual Machine, or VM, is a software abstraction of a physical machine. This entails virtualization of the physical machines resources in order to share them among OS run in the VM. Virtualizing these resources allow the OS to run as if it were on a full machine when, in reality, it is actually running in a virtualized environment on top of a hostOS, the OS actually running on the machine, sharing the resources.&lt;br /&gt;
&lt;br /&gt;
Virtual Machines generally contain two key components, the Virtual Machine Monitor, or VMM and the VM.&lt;br /&gt;
&lt;br /&gt;
The VMM, also known as the hypervisor, manages the virtualization of the physical resources and the interactions with the VM running on top. [4] In other words, it mediates between the virtualized world and the physical world, keeping them separate and monitoring their interactions with each other. The hypervisor is what allows the VM to operate as if it were on its own machine by handling any requests to resources and maintaining these requests with what has actually been provided to the VM by the hostOS.  The hostOS provides management for the VMM as well as allowing physical access to devices, hardware and drivers. [6]&lt;br /&gt;
&lt;br /&gt;
The VM is what contains the OS we are running through virtualization. [6] This OS is called the guestOS and it will only be able to access any resources that have been made available to the VM by the hostOS. [6] Otherwise, the guestOS will not know about any other resources and does not have direct access to physical hardware. This will be taken care of by the VMM but the guestOS will execute as its own machine, unaware of this mediator.&lt;br /&gt;
&lt;br /&gt;
There are various ways of implementing hardware virtualization in a system to allow VMs to run. This includes device emulation, paravirtualization and dedicated devices. [9]&lt;br /&gt;
&lt;br /&gt;
In device emulation, the VMM provides a complete virtualization of a device for the guestOS to interact with, in software. [9] The VMM will map this virtualized device to the physical resource and handle any interactions between them. This will usually include converting instructions from the guestOS into instructions that are compatible with the device. [9] Device emulation allows for the VM to be migrated easily to another machine as it is not dependent on the physical devices but on the software emulations instead. [9] It also allows for simpler multiplexing between multiple virtual machines as it can handle sharing though these virtualized devices. [9] A drawback of emulation, however, is poor performance as the VMM must handle every request and convert them to be compatible with the physical device. [9] However, despite its poor performance, emulation is the most common form of virtualization.&lt;br /&gt;
&lt;br /&gt;
Paravirtualization allows for a boost in performance by having the guestOS and the hostOS work together to improve performance. [9] In paravirtualization, the guestOS is not a native OS and must be modified so that it is aware that it is a virtualized system. [9] As the guestOS is aware of this, it can now make better decisions about how it accesses devices. As the guestOS will be able to handle its decisions better, the VMM’s responsibility is reduced as it now does not have to translate between the guestOS and the physical devices. [9] Though the performance boost is a great advantage, there are many disadvantages to this. You can only use paravirtualization if you can implement the modifications to the guestOS. Not everything can be paravirtualized and as such, this limits the cases in which this method can be used. [9] Also, every guestOS must be modified in order to be used in paravirtualization. The modifications will differ in various OS and so, there is also the task of implementing these changes to make a guestOS compatible. [9]&lt;br /&gt;
&lt;br /&gt;
Instead of virtualizing the hardware and mediating between with the VMM, dedicated devices allow mapping directly to the guestOS. [9] In this method, the device will use the guestOS’s drivers instead of the hostOS’s. [9] Using this method allows the guestOS to use the hardware to its full extent without having to deal with the VMM. This simplifies the VMM by eliminating the overhead in virtualizating the hardware and handling the requests to devices. [9] However, there are limited physical resources to be dedicated to a guestOS and this also makes migration difficult as the guestOS is dependent on the physical device. [9]&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;notes&#039;&#039;&#039;&lt;br /&gt;
- it ended up being quite lengthy. I mainly focused on the device virtualization rather than the architecture of a VM (like x86 virtualization). I&#039;ll put up my notes for the paper I found for virtualization. I didn&#039;t talk about Xen or VMware though. If any of that is needed, I can try to continue working on it tonight but I have another priority.&lt;br /&gt;
&lt;br /&gt;
-try focusing on the emulation side of VM where emulation&#039;s weaknesses vs direct hardware access or custom abstraction that exokernels -Slade&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Paragraph 3 -Exokernel -Corey L &lt;br /&gt;
&lt;br /&gt;
Paragraph 4 - Contrast/Compromise --[[User:Asoknack|Asoknack]]&lt;br /&gt;
&lt;br /&gt;
Conclusion - Jon S.   -  Only a sentence per paragraph, excluding Intro&lt;br /&gt;
&lt;br /&gt;
Sweet.  Looks like we got it covered.  We should read each others parts and put suggestions and edits. One of us should try and change it to one style if there are contradictions. And to put it on the main page.  We can figure that out tomorrow.  - Jon S&lt;br /&gt;
&lt;br /&gt;
Once the other parts are up and you see anything you know of as a good reference to back it up, put the link so we can use it. -Slade&lt;br /&gt;
&lt;br /&gt;
I made some edits to the first two paragraphs. I just reworded some of the unclear sentences and some grammatical errors. I&#039;ll work on editing more of it after comp 3007. Also when all the parts are up i can go through it and link the paragraphs together so it can be read more like an essay  --[[User:Aellebla|Aellebla]] 15:18, 14 October 2010 (UTC)&lt;br /&gt;
&lt;br /&gt;
==Potential Test Questions==&lt;br /&gt;
&lt;br /&gt;
Add potential test questions here:&lt;/div&gt;</summary>
		<author><name>Slay</name></author>
	</entry>
	<entry>
		<id>https://homeostasis.scs.carleton.ca/wiki/index.php?title=Talk:COMP_3000_Essay_1_2010_Question_1&amp;diff=3832</id>
		<title>Talk:COMP 3000 Essay 1 2010 Question 1</title>
		<link rel="alternate" type="text/html" href="https://homeostasis.scs.carleton.ca/wiki/index.php?title=Talk:COMP_3000_Essay_1_2010_Question_1&amp;diff=3832"/>
		<updated>2010-10-14T16:01:12Z</updated>

		<summary type="html">&lt;p&gt;Slay: /* three approaches */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Microkernel == &lt;br /&gt;
* Moving kernel functionality into processes contained in user space, e.g. file systems, drivers&lt;br /&gt;
* Keep basic functionality in kernel to handle sharing of resources&lt;br /&gt;
* Separation allows for manageability and security, corruption in one does not necessarily cause failure in system&lt;br /&gt;
* Large amount of moving from a process to Kernel to user space and back again, this is a costly operation.&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039; Microkernel &#039;&#039;&#039;&lt;br /&gt;
* try&#039;s to minimize the amount of software that is mandatory or required [7]&lt;br /&gt;
advantages of Microkernel&lt;br /&gt;
* favors a modular system structure [7]&lt;br /&gt;
* one failure of a program does not impact any other programs [7]&lt;br /&gt;
* can support more than one api or strategies since all programs are separated [7]&lt;br /&gt;
==== Microkernel Concepts ==== &lt;br /&gt;
* piece of code is allowed in the kernel only if moving it outside the kernel would adversely affect the system. [7]&lt;br /&gt;
* any subsystem program created must be independent of all other subsystem&#039;s, any subsystem that is used can guarantee this from all other subsystems [7]&lt;br /&gt;
===== Address Space =====&lt;br /&gt;
* a mapping that relates the physical page to the virtual page. [7]&lt;br /&gt;
* processor specific [7]&lt;br /&gt;
* hide&#039;s the hardware&#039;s concept of address space [7]&lt;br /&gt;
* based off the idea of recursion each subsystem has it&#039;s own address space [7]&lt;br /&gt;
* the micro kernel provides 3 operations [7]&lt;br /&gt;
** Grant [7]&lt;br /&gt;
*** allows the owner to give a page to a recipient, provided the recipient want&#039;s it the page is removed from the owner&#039;s address space and but in the recipients. [7]&lt;br /&gt;
*** must be available to the owner. [7]&lt;br /&gt;
** Map [7]&lt;br /&gt;
*** allows the user to share a page with a recipient [7]&lt;br /&gt;
*** page is not removed from the owner&#039;s address space. [7]&lt;br /&gt;
** Flush [7]&lt;br /&gt;
*** remove&#039;s the page from all recipients address space [7]&lt;br /&gt;
*** how does this work with Grant --[[User:Asoknack|Asoknack]] 19:10, 12 October 2010 (UTC)&lt;br /&gt;
* allows memory management and paging out side the kernel&lt;br /&gt;
* Map and flush is required for memory manger&#039;s and pagers [7]&lt;br /&gt;
* can be used to implement access right&#039;s [7]&lt;br /&gt;
* controlling I/O Right&#039;s and driver&#039;s are not done at kernel level [7]&lt;br /&gt;
&lt;br /&gt;
===== Thread&#039;s IPC =====&lt;br /&gt;
* Threads&lt;br /&gt;
** in the kernel [7]&lt;br /&gt;
** Since a thread has an address space , all changes to the thread need to be done by the kernel [7]&lt;br /&gt;
* IPC [7]&lt;br /&gt;
** in the kernel IPC&lt;br /&gt;
** grant and map also need IPC  (So buye the priciple above this has to be in the kernel)[7]&lt;br /&gt;
** basic way for sub process to communicate. [7]&lt;br /&gt;
* Interrupts&lt;br /&gt;
** partially in the kernel [7]&lt;br /&gt;
** hard ware is a set of thread&#039;s which are empty except for there unique sender id [7]&lt;br /&gt;
** transformation of the message to the interrupt is done in the kernel [7]&lt;br /&gt;
** the kernel is not involved in device - specific interrupt&#039;s and does not understand the interrupt. [7]&lt;br /&gt;
*** resting the interrupt is done at user level [7]&lt;br /&gt;
** if a privileged command is need it is done implicitly the next time an IPC command is sent from the device [7]&lt;br /&gt;
&lt;br /&gt;
===== Unique Identifiers =====&lt;br /&gt;
&lt;br /&gt;
== Virtual Machine ==&lt;br /&gt;
* Partitioning or virtualizing resources among OS virtualization running on top of host OS&lt;br /&gt;
* Virtualized OS believe running on full machine on its own&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
System Level Virtualization&lt;br /&gt;
&lt;br /&gt;
=== VMM ===&lt;br /&gt;
* stands for Virtual Machine Monitor, also known as the hyper-visor[4]&lt;br /&gt;
* responsible for virtualization of hardware(mapping physical to virtual) and the VM that run on top of the virtuallized hardware [4]&lt;br /&gt;
* usually a small os with no drivers , so it is coupled with a linux distro that provides device / hardware access [4]&lt;br /&gt;
** the os that the VMM is using for driver&#039;s is called the hostOS [6]&lt;br /&gt;
*the hostOS provides login and physical access to the hardware as well as management for the VMM [6]&lt;br /&gt;
=== VM ===&lt;br /&gt;
* the OS that the vm is running is called the guestOS [6]&lt;br /&gt;
* the guestOS only sees resources that have been allocated to the VM [6]&lt;br /&gt;
==== three approaches ====&lt;br /&gt;
*Type I virtualization [5]&lt;br /&gt;
** runs off the physical hardware [4]&lt;br /&gt;
** Isolation of the guestOs from the hardware is done threw processe level protection meachnism[6]&lt;br /&gt;
*** ring 0 = VMM [6]&lt;br /&gt;
*** ring 1 = VM [6]&lt;br /&gt;
*** this means all instructions from the VM must go threw the VMM [6]&lt;br /&gt;
** since there can be multiple VM&#039;s on a computer the scheduling is done by the VMM [6]&lt;br /&gt;
** on boot the VMM creates a hardware platform for the VM [6]&lt;br /&gt;
** load&#039;s the VM kernel into virtual memory and then boot&#039;s it like a regular computer [6]&lt;br /&gt;
** ex. Xen [4]&lt;br /&gt;
*Type II virtualization [5]&lt;br /&gt;
** run off the host Os [4]&lt;br /&gt;
** ex. VMware , QEMU [4]&lt;br /&gt;
* Para-virtualization [6]&lt;br /&gt;
** Similar to Type but use the HostOs for Device driver access [6]&lt;br /&gt;
** Provide a virtualization that is similar to hardware [From the paper posted, no citation yet]&lt;br /&gt;
** GuestOS and Hypervisor work together to improve performance&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
Classical Virtualization&lt;br /&gt;
* VMMs allow programs in virtual environments to run natively other than resource usage&lt;br /&gt;
** Dominant instructions executed directly on cpu&lt;br /&gt;
** vmm completely controls system resources&lt;br /&gt;
** often need to emulate every native instruction which would severely effect the performance&lt;br /&gt;
** sensitive instruction that violate safety and encapsulation&lt;br /&gt;
** vmm handles them as priviledged instructions&lt;br /&gt;
&lt;br /&gt;
x86 Virtualization&lt;br /&gt;
* virtualization in personal work stations rather than mainframes&lt;br /&gt;
** rings that allow isolation between virtual machines&lt;br /&gt;
** most privileged in ring 0 and least in ring 3. The operating system runs in ring 0 and user apps in ring 3&lt;br /&gt;
*** vmm in ring 0 and vms in lesser privilege rings (1 or 3)&lt;br /&gt;
*** guestOS believes its in ring 0&lt;br /&gt;
* address space compression, where to run the VMM&lt;br /&gt;
** if run using guest address space, guest can find out its virtualized or compromise the isolation&lt;br /&gt;
* does not trap all sensitive instructions but can handle them, violates classical virtualization description&lt;br /&gt;
* some privileged access fail without faulting&lt;br /&gt;
* interrupt virtualization - VMM handles AND guestOS handles&lt;br /&gt;
* binary translation - improve performance&lt;br /&gt;
* rewriting instructions and trapping before problems arrise&lt;br /&gt;
&lt;br /&gt;
Paravirtualization&lt;br /&gt;
* guestOS become exposed to vm information so that the guest is aware that it is virtualized and can make decisions based on this&lt;br /&gt;
* allows to avoid problem instructions&lt;br /&gt;
* Xen&lt;br /&gt;
* guestOS must be modified and is not natively running&lt;br /&gt;
**works with the hostOS to run efficiently&lt;br /&gt;
&lt;br /&gt;
VMM types&lt;br /&gt;
* hostedVMM - executes in hostOS and uses the drivers and support of the OS&lt;br /&gt;
* Stand-aloneVMM - runs directly on hardware and uses it&#039;s own drivers and services&lt;br /&gt;
* hybridVMM - runs a serviceOS where requests to hardware go through (I/O)&lt;br /&gt;
&lt;br /&gt;
Device Emulation&lt;br /&gt;
* implement real hardware in software&lt;br /&gt;
* completely virtual device that the guest interacts with&lt;br /&gt;
* mapped to physical hardware that handles the interactions but the emulation allows conversion&lt;br /&gt;
* allows the vm to be easily migrated between machines as it does not rely on the physical hardware&lt;br /&gt;
* allows having multiple vms and simplifies sharing (multiplexing)&lt;br /&gt;
* poor performance as the vmm needs to do a lot to virtulize the machine&lt;br /&gt;
&lt;br /&gt;
Paravirtualization&lt;br /&gt;
* modified guestOS to cooperate with VMM &lt;br /&gt;
* VMM does not have to do everything to handle device drivers&lt;br /&gt;
* not everything can be paravirtualized&lt;br /&gt;
* proprietary os and device drivers can&#039;t be paravirtualized&lt;br /&gt;
* still allows an increase in performance&lt;br /&gt;
* eventing or callback mechanism&lt;br /&gt;
** guestOS modifies interrupt mechs&lt;br /&gt;
* modifications are not applicable to all guestOS&lt;br /&gt;
&lt;br /&gt;
Dedicated Devices&lt;br /&gt;
* does not virtualize device but assigns directly to guest vm&lt;br /&gt;
* uses guest&#039;s drivers instead of host&lt;br /&gt;
* simplifiest vmm by removing handing of i/o securily&lt;br /&gt;
* limited physical devices that can be dedicated&lt;br /&gt;
* dificult to migrate vm as it depends on the pairing with this resource&lt;br /&gt;
* elims over-head of virtualization and simplicity in vmm&lt;br /&gt;
* direct memory access not supported&lt;br /&gt;
&lt;br /&gt;
== Exokernel ==&lt;br /&gt;
* Micro-kernel architecture with limited abstractions, ask for resource, get resource not resource abstraction&lt;br /&gt;
* Less functionality provided by kernel, security and handling of resource sharing&lt;br /&gt;
* Once application receives resource, it can use it as it wishes/in control&lt;br /&gt;
* Keep the basic kernel to handle allocating resources and sharing rather than developing straight to the hardware&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
* multiplex resources securely providing protection to mutual distrustful application threw the use of secure binding&#039;s[1]&lt;br /&gt;
* Goal of the exokernel is to give LibOS maximum freedom with out allowing them to interfere with each other. to do this the exokernel separates protection from management in doing this it provide 3 important tasks[1]&lt;br /&gt;
** tracking ownership of resources [1]&lt;br /&gt;
** ensuring protection by guarding all resource usage and binding points (not to shure what binding points are)[1]&lt;br /&gt;
** revoking access to the resources [1]&lt;br /&gt;
* LibrayOS (LibOs)&lt;br /&gt;
** Reduces the number of kernel crossings[1]&lt;br /&gt;
** Not trusted by the exokernel so can be trusted by the application , Example given is a bad parameter passed to the LibOs only the application is affected.[1] (So LibOs cant interact with kernel ???)&lt;br /&gt;
** Any application running on the Exokernel can change the LibrayOs freely [1]&lt;br /&gt;
** Application that use LibOS that implement standard interfaces (POSIX) will be portable on any system with the same interface [1]&lt;br /&gt;
** LibOs can be made portable if it is designed to interact with a low-level machine independent level to hide hardware details [1]&lt;br /&gt;
&lt;br /&gt;
=== Exokernel Design ===&lt;br /&gt;
==== Design Principles ====&lt;br /&gt;
*Securely Expose Hardware [1]&lt;br /&gt;
** an Exokernel tries to create low level primitives that the hardware resources can be accessed from, this also includes interrupts,exceptions [1]&lt;br /&gt;
** the exokernel also export privileged instructions to the LibOS so that traditional OS abstractions can be implemented (eg Process , address pace)[1]&lt;br /&gt;
** Exokernels should avoid resource management except when required protection ( allocation , revocation , ownership)[1]&lt;br /&gt;
** application based resource management is the best way to build flexible efficient flexible systems [1]&lt;br /&gt;
*Expose allocation[1]&lt;br /&gt;
** allow LibOs to request physical resources [1]&lt;br /&gt;
** resource allocation should not be automatic, the LibOS should participate in every single allocation decision [1]&lt;br /&gt;
*Expose Names[1]&lt;br /&gt;
** Use physical name&#039;s when ever possible[3] (not to sure what physical names are, I think it is as simple as what the hardware is called)--[[User:Asoknack|Asoknack]] 20:27, 9 October 2010 (UTC)&lt;br /&gt;
** Physical names capture useful information [3]&lt;br /&gt;
*** safer than and less resource intensive than virtual names as no translations are needed[3]&lt;br /&gt;
*Expose Revocation [1]&lt;br /&gt;
** use visible revocation protocol [1]&lt;br /&gt;
** allows well behaved LibOS to preform application level resource management [1]&lt;br /&gt;
** Visible revocation allows the LibOS to choose what instance of the resource to release[1](Visible means that when revocation happens the exokernel tell the LibOS that resource is being revoked)&lt;br /&gt;
&#039;&#039;&#039; Policy &#039;&#039;&#039;&lt;br /&gt;
* LibOS handle resource policy decisions&lt;br /&gt;
* Exokernels have a policy to decided between competing LibOS (Priority , share of resources)&lt;br /&gt;
** it enforces this threw allocation and deallocation (every thing can achieved threw this even what block to write and such)&lt;br /&gt;
&lt;br /&gt;
==== Secure Bindings ====&lt;br /&gt;
* Used by the exokernel to allow the LibOS to bind to resources [1]&lt;br /&gt;
* Allows the separation of protection and resource use [1]&lt;br /&gt;
* only checks authorization during bind time [1]&lt;br /&gt;
** Application&#039;s with complex needs for resources only authorized during bind.[1]&lt;br /&gt;
* access checking is done during access time and there is no need to understand complex resources needs during access[1]&lt;br /&gt;
** (this means that the exokernel checks once to make sure an application has authorization once approved, when the application tries to use the resource the exokernel is only concerned about policy conflict&#039;s)--[[User:Asoknack|Asoknack]] 18:20, 9 October 2010 (UTC)&lt;br /&gt;
** allows the kernel to protect the resources with out understanding what the resource is [1]&lt;br /&gt;
*three way&#039;s to implement&lt;br /&gt;
* Hardware Mechanisms [1]&lt;br /&gt;
* Software caching [1]&lt;br /&gt;
* Downloading application code [1]&lt;br /&gt;
&#039;&#039;&#039; Downloading Code to the Kernel &#039;&#039;&#039;&lt;br /&gt;
* used to implement secure bindings , and improve performance[1]&lt;br /&gt;
** eliminate the number of kernel crossings [1]&lt;br /&gt;
** downloaded code can be run with out the application to be scheduled [2]&lt;br /&gt;
==== Visible Resource Revocation ====&lt;br /&gt;
* Used for most resources [1]&lt;br /&gt;
** allows for LibOS to help with deallocation [1]&lt;br /&gt;
** LibOS are able to garner what resources are scare [1]&lt;br /&gt;
* Slower than Invisible as application involvement is required [1]&lt;br /&gt;
** ex of when invisible is used is Processor addressing-context identifiers [1]&lt;br /&gt;
==== Abort Protocol ====&lt;br /&gt;
* allows the exokernel to take resources away from the LibOS [1]&lt;br /&gt;
* used when the LibOS fails to respond to the revocation request [1]&lt;br /&gt;
* Exokernel must be careful not to delete as the LibOS might need to write some system critical data to the resource [1]&lt;br /&gt;
&lt;br /&gt;
== Comparisons  ==&lt;br /&gt;
====Exokernel/Microkernel====&lt;br /&gt;
&#039;&#039;&#039;Similarities&#039;&#039;&#039;&lt;br /&gt;
* Limited functionality in kernel&lt;br /&gt;
** functionality in kernel to handle sharing of resources and security&lt;br /&gt;
** avoids programming directly to hardware which creates a dependency&lt;br /&gt;
* Additional functionality provided in user space as processes&lt;br /&gt;
&#039;&#039;&#039;Differences&#039;&#039;&#039;&lt;br /&gt;
* Minimal abstractions provided by the kernel&lt;br /&gt;
** Applications given more power in exokernel&lt;br /&gt;
&lt;br /&gt;
====Exokernel/VM====&lt;br /&gt;
&#039;&#039;&#039;Similarities&#039;&#039;&#039;&lt;br /&gt;
* Idea of partitioning resources between applications/OSs&lt;br /&gt;
* &amp;quot;Control&amp;quot; of resource given&lt;br /&gt;
* Isolation from other applications/OSs&lt;br /&gt;
&#039;&#039;&#039;Differences&#039;&#039;&#039;&lt;br /&gt;
* Exokernel runs applications, VM runs OS&lt;br /&gt;
* VM uses a hostOS and guestOSs run on top&lt;br /&gt;
* Virtualization on VMs, Exokernel deals with real resources&lt;br /&gt;
* VM hides a lot of information because it emulates. Exokernel does not.&lt;br /&gt;
&lt;br /&gt;
====Microkernel/VM====&lt;br /&gt;
&#039;&#039;&#039;Differences&#039;&#039;&#039;&lt;br /&gt;
* With a virtual machine, you are not virtualizing apps like with a microkernel but virtualizing an entire Operating System.&lt;br /&gt;
* This can be costly but the benefits are that it&#039;s easier and all the standard OS features are available.&lt;br /&gt;
&lt;br /&gt;
== References ==&lt;br /&gt;
[1]&amp;lt;nowiki&amp;gt; Engler, D. R., Kaashoek, M. F., and O&#039;Toole, J. 1995. Exokernel: an operating system architecture for application-level resource management. In Proceedings of the Fifteenth ACM Symposium on Operating Systems Principles  (Copper Mountain, Colorado, United States, December 03 - 06, 1995). M. B. Jones, Ed. SOSP &#039;95. ACM, New York, NY, 251-266. DOI= http://doi.acm.org/10.1145/224056.224076 &amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[2]&amp;lt;nowiki&amp;gt;Engler, Dawson R. &amp;quot;The Exokernel Operating System Architecture.&amp;quot; Diss. Massachusetts Institute of Technology, Dept. of Electrical Engineering and Computer Science, 1998. Web. 9 Oct. 2010. &amp;lt;http://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.61.5054&amp;amp;rep=rep1&amp;amp;type=pdf&amp;gt;.&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[3]&amp;lt;nowiki&amp;gt;Kaashoek, M. F., Engler, D. R., Ganger, G. R., Briceño, H. M., Hunt, R., Mazières, D., Pinckney, T., Grimm, R., Jannotti, J., and Mackenzie, K. 1997. Application performance and flexibility on exokernel systems. In Proceedings of the Sixteenth ACM Symposium on Operating Systems Principles  (Saint Malo, France, October 05 - 08, 1997). W. M. Waite, Ed. SOSP &#039;97. ACM, New York, NY, 52-65. DOI= http://doi.acm.org/10.1145/268998.266644 &amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[4]&amp;lt;nowiki&amp;gt;Vallee, G.; Naughton, T.; Engelmann, C.; Hong Ong; Scott, S.L.; , &amp;quot;System-Level Virtualization for High Performance Computing,&amp;quot; Parallel, Distributed and Network-Based Processing, 2008. PDP 2008. 16th Euromicro Conference on , vol., no., pp.636-643, 13-15 Feb. 2008&lt;br /&gt;
DOI= http://doi.acm.org/10.1109/PDP.2008.85 &amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[5]&amp;lt;nowiki&amp;gt;Goldberg, R. P. 1973. Architecture of virtual machines. In Proceedings of the Workshop on Virtual Computer Systems  (Cambridge, Massachusetts, United States, March 26 - 27, 1973). ACM, New York, NY, 74-112. DOI= http://doi.acm.org/10.1145/800122.803950 &amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[6]&amp;lt;nowiki&amp;gt;Vallee, G., Naughton, T., and Scott, S. L. 2007. System management software for virtual environments. In Proceedings of the 4th international Conference on Computing Frontiers (Ischia, Italy, May 07 - 09, 2007). CF &#039;07. ACM, New York, NY, 153-160. DOI= http://doi.acm.org/10.1145/1242531.1242555 &amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[7]&amp;lt;nowiki&amp;gt;Liedtke, J. 1995. On micro-kernel construction. In Proceedings of the Fifteenth ACM Symposium on Operating Systems Principles  (Copper Mountain, Colorado, United States, December 03 - 06, 1995). M. B. Jones, Ed. SOSP &#039;95. ACM, New York, NY, 237-250. DOI= http://doi.acm.org/10.1145/224056.224075 &amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[8]&amp;lt;nowiki&amp;gt;Microkernel verses monolithic kernel&lt;br /&gt;
http://www.vmars.tuwien.ac.at/courses/akti12/journal/04ss/article_04ss_Roch.pdf  - Roch&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
I will site it/reference it better later&lt;br /&gt;
&lt;br /&gt;
[9]Fisher-Ogden J. 2006. Hardware Support for Efficient Virtualization. University of California, San Diego. http://cseweb.ucsd.edu/~jfisherogden/hardwareVirt.pdf&lt;br /&gt;
&lt;br /&gt;
Not completely sure of the citation style used above.&lt;br /&gt;
&lt;br /&gt;
== Unsorted ==&lt;br /&gt;
An overview of exokernels,virtual machines, microkernels *[http://www2.supchurch.org:10999/files/school/classes/CSCI4730/Lectures/grad-structures.ppt Overview](Power Point)&amp;lt;br&amp;gt;&lt;br /&gt;
Should not be used as a source but an overview.&lt;br /&gt;
&lt;br /&gt;
The original paper on [http://portal.acm.org/citation.cfm?id=224076 Exokernels] --[[User:Gautam|Gautam]] 22:39, 6 October 2010 (UTC)&lt;br /&gt;
&lt;br /&gt;
Exokernel-&lt;br /&gt;
Minimalistic abstractions for developers&lt;br /&gt;
Exokernels can be seen as a good compromise between virtual machines and microkernels in the sense that exokernels can give that low level access to developers similar to direct access through a protected layer and at the same time can contain enough hardware abstraction to allow similar benefit of hiding the hardware resources to application programs.&lt;br /&gt;
Exokernel – fewest hardware abstractions to developer&lt;br /&gt;
Microkernel - is the near-minimum amount of software that can provide the mechanisms needed to implement an operating system&lt;br /&gt;
Virtual machine is a simulation of any or devices requested by an application program&lt;br /&gt;
Exokenel – I’ve got a sound card&lt;br /&gt;
Virtual Machine – I’ve got the sound card you’re looking for, perfect virtual match&lt;br /&gt;
Microkernel – I’ve got sound card that plays Khazikstan sound format only&lt;br /&gt;
MicroKernel - Very small, very predictable, good for schedualing (QNX is a microkernel - POSIX compatable, benefits of running linux software like modern browsers) &lt;br /&gt;
&lt;br /&gt;
This is some ideas I&#039;ve got on this question, please contribute below&lt;br /&gt;
-Rovic&lt;br /&gt;
&lt;br /&gt;
Outlining some main features here as I see them.&lt;br /&gt;
&lt;br /&gt;
I found that the exokernel was an even lower-level design than the microkernel, closer to the hardware without abstraction. They have the same architecture with the basic functionality contained in the kernel to manage everyone. As the exokernel &amp;quot;gives&amp;quot; the resource to the application it can use the resource in isolation of other applications (until forced to shared) much like VMs receive their resources, either partitioned or virtualized, and execute as if its running on its own machine. There is this similar notion of partitioning the resources among applications/OS and allowing them to take control of what they have. &lt;br /&gt;
&lt;br /&gt;
I&#039;ll locate some references later on. --[[User:Slay|Slay]] 15:00, 7 October 2010 (UTC)&lt;br /&gt;
&lt;br /&gt;
I&#039;m just going to post my answer for question 1 on the individuel assignment and hope it helps. --[[User:Aellebla|Aellebla]] 15:06, 12 October 2010 (UTC)&lt;br /&gt;
&lt;br /&gt;
The design of the micro kernel was to take everything they could out of the Kernel and put it into a process. For ex, networking would be put into a process instead of staying in the kernel. The micro kernel dev&#039;s tried to keep lots of things in user space for efficiency. But one major problem with this is there would be a large amount of moving from a process to the kernel to user space and back again and this is a costly, non efficient process.It was an application specific OS, there was no multiplexing. With a virtual machine you are not virtualizing apps like with a microkernel but virtualizing an entire Operating System. This is very heavy however but the benefits are that it‟s easy and all the standard OS features are there whereas in a microkernel setup they would not all be there and this can be seen as a compromise.&lt;br /&gt;
&lt;br /&gt;
Exokernels can be seen as a compromise to virtual machines and microkernels because virtual machines emulate and exokernels do not. When you emulate something you hide a lot of the actual information because you wouldn‟t be able to see the „real‟ hardware. If we look at a virtual box setup running Linux, and we go look at all the hardware, it will be displayed as fake hardware.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Maybe we can have an introduction - paragraph or so on each type - then similarities - differences - and the compromise.  I am going to do some research and writing this weekend and I will put some up  -- Jslonosky&lt;br /&gt;
&lt;br /&gt;
btw in my page (i guess you can call it that) i have some resources i have found  --[[User:Asoknack|Asoknack]] 15:50, 8 October 2010 (UTC)&lt;br /&gt;
- Wow, nice man. I will go ahead and write up the descriptive paragraphs on each kernel and virtual machine if no one minds. --Jslonosky&lt;br /&gt;
&lt;br /&gt;
I think we should divide up the paragraphs and proofread each others instead. (Are there only 4 of us?) I don&#039;t have much time to work on this today though but I&#039;ll try to work on it tomorrow morning. - Slay&lt;br /&gt;
&lt;br /&gt;
Sure guy.  That sounds good.  There should be 5 or 6 of us though.. . Oh well. Their loss.  I will do some before or after work today. Ill start with Microkernel since there is not a large amount of info here, and so we don&#039;t overlap each other - JSlonosky&lt;br /&gt;
&lt;br /&gt;
yeah i think there was more like 7 of us btw if any one has any more information feel free to add it would be nice if you add the references so that way citing is really easy on  acm.org it will auto give you the citation info (where it says Display Formats click on ACM Ref  and new window with the citation info auto pop&#039;s up) --[[User:Asoknack|Asoknack]] 02:28, 11 October 2010 (UTC)&lt;br /&gt;
&lt;br /&gt;
I added an outline of the similarities and differences. Add any more that I missed. These are from observations so I don&#039;t have any resources. -Slay&lt;br /&gt;
That&#039;s probably fine.  Our textbook probably outlines some of them, so I am sure we can find a few there - JSlonosky&lt;br /&gt;
&lt;br /&gt;
Talked to the teacher today and for VM he said we should focus on the implementation such as Xen and VMware , he also said to talk about para virtualization --[[User:Asoknack|Asoknack]] 18:42, 12 October 2010 (UTC)&lt;br /&gt;
&lt;br /&gt;
A paper about emulation and paravirtualization [http://portal.acm.org/citation.cfm?id=1189289&amp;amp;coll=GUIDE&amp;amp;dl=GUIDE&amp;amp;CFID=105648137&amp;amp;CFTOKEN=47153176&amp;amp;ret=1#Fulltext link] - Slay&lt;br /&gt;
&lt;br /&gt;
Oh no big words.  Sorry about the Microkernels not done yet.  Working on an outline now.  Finally found how to access the ACM through carleton.  Gawd. &lt;br /&gt;
I am planning an outline, quick bit about kernels in general, (maybe mention monolith kernels?), and what microkernels do.&lt;br /&gt;
I see the microkernel outline info and a reference ( Whomever did that == hero: true) about the scheduling and the Memory management.  Should that be included in kernels in general and then mention what microkernels build upon/change? - JSlonosky&lt;br /&gt;
&lt;br /&gt;
Sorry late to the party here. My mistake was not checking the discussion page when I checked in. I don&#039;t want to trample anyone&#039;s current work but I don&#039;t see any work on the final essay done. I would love to help just need to know where I can step in so as to not screw anyone else up. -- [[User:Cling|Cling]]&lt;br /&gt;
&lt;br /&gt;
I don&#039;t think I&#039;ll be able to write up something for the final essay, even though I suggested splitting it. I&#039;ll do research tonight though on the paravirtualization. If I find the time, I&#039;ll try to write something. Sorry about that. --[[User:Slay|Slay]] 21:52, 13 October 2010 (UTC)&lt;br /&gt;
&lt;br /&gt;
We all have 3004 to do too, man.  I do not think anyone has chosen to do Virtual Machine section yet, or the Exokernel itself. But the contrast paragraph and the intro is chosen, and intro is done.  Microkernel and kernel will be done in a hour I hope. -- JSlonosky&lt;br /&gt;
&lt;br /&gt;
I can attempt to write up anything, the issue is I don&#039;t have any context on what to write, how do I tie it in to the rest of the essay? I only have a Japanese Quiz tomorrow morning then I should be good to write anything up for the rest of the day. As someone who has already written part of the essay, and assuming I attempt the exokernel section, how much do you think I should write? Should it just be about exokernel or should there be comparisons to the other topics? Thanks --[[User:Cling|Cling]] 23:14, 13 October 2010 (UTC)&lt;br /&gt;
&lt;br /&gt;
Go with the Exokernel itself.  Slade is getting off work in a hour and we can double check what he is doing then.  We can put it together tomorrow sometime, and fill in the other stuff. - JSLonosky&lt;br /&gt;
&lt;br /&gt;
I&#039;ll attempt to work on VM tonight, then. I would feel so bad if I didn&#039;t write anything. -Slay&lt;br /&gt;
&lt;br /&gt;
Still wondering how much to write, I think we should decide on a decent word count or length so we don&#039;t have one short section (which would probably be mine) and/or one massive section that dwarfs all the others. If anyone has already written a section could you post your word count so we can aim to be around there, it would obviously be just a recommendation but it&#039;s just better to be on the safe side and have everything uniform. I haven&#039;t seen any formal requirements for the essay but I could be wrong, I also haven&#039;t been to class in a while. --[[User:Cling|Cling]] 23:33, 13 October 2010 (UTC)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Yeah Slay, VM probably doesnt have much to write about.  Get something down, and we can go over it.  CLing, Just write what you think.  There is not a lot to go over if I write kernel/microkernel well enough.  What is a exokernel?  exokernel was an even lower-level design than the microkernel, closer to the hardware without abstraction, basically (As said by Slade). I will probably end up with 500 or a bit more words. -- JSlonosky&lt;br /&gt;
&lt;br /&gt;
Sound off!&lt;br /&gt;
&lt;br /&gt;
Who&#039;s actually reading this? Add your name to the list...&lt;br /&gt;
&lt;br /&gt;
Rovic P.&lt;br /&gt;
Jon Slonosky&lt;br /&gt;
Corey Ling&lt;br /&gt;
Steph Lay&lt;br /&gt;
Aaron .L&lt;br /&gt;
&lt;br /&gt;
== The Essay ==&lt;br /&gt;
&lt;br /&gt;
Let&#039;s actually breakdown the essay into components then write it here.&lt;br /&gt;
&lt;br /&gt;
I&#039;d like to go along the premise that microkernels and and virtual machines are &amp;quot;weaker&amp;quot; than exokernels in design for the essay. If anyone has any objections, add it here. &lt;br /&gt;
&lt;br /&gt;
-Slade&lt;br /&gt;
&lt;br /&gt;
 what do you mean by &amp;quot;weaker&amp;quot;(i think you mean exokernels&#039; takes the best of both worlds ) --[[User:Asoknack|Asoknack]] 02:45, 13 October 2010 (UTC)&lt;br /&gt;
&lt;br /&gt;
What I mean by weaker is that we should focus on the things microkernels and virtual machines may not do as well compared to a system based off an exokernel design and then focus on how an exokenenel can take the best of both worlds. Please choose which section you will work on, that&#039;s not to say it&#039;ll be the only part you do, but rather we&#039;ll all contribute to each part please. 1 day left.&lt;br /&gt;
-Slade&lt;br /&gt;
&lt;br /&gt;
...to the extent that exokernels be seen as a compromise between virtual machines and microkernels. &lt;br /&gt;
-I&#039;ll work on the initial intro. -Slade&lt;br /&gt;
&lt;br /&gt;
3 paragraphs that prove it&lt;br /&gt;
Explain how the key design characteristics of these three system architectures compare with each other. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
intro/thesis statement -Rovic P.&lt;br /&gt;
&lt;br /&gt;
In Computer Science, the kernel is the component at the center of  the majority of operating systems. The kernel is a bridge for applications to access the hardware level. It is responsible for managing the system&#039;s resources such as memory, disk storage, task management and networking. We are comparing Exokernels to Microkernels and Virtual Machines by looking at how the kernel goes about such management and its connections. In the Exokernel conceptual model, we can see exokernels become much smaller than microkernels because as this design shows, they are tiny and strive to keep functionality limited to protection and multiplexing of resources. The Virtual Machine Implementation of virtualizing all devices on the system may provide compatibility, but it also adds a layer of complexity within the system. This is less efficient than a real machine as it accesses the hardware indirectly. It can be observed by examining how the exokernel provides low level hardware access and provides custom abstraction to those devices. This is done in order to improve program performance as opposed to a VM&#039;s implementation. The exokernel concept has a design that can take the better concepts of microkernels and virtual machines to the extent that exokernels can be seen as a compromise between a virtual machine and a microkernel.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Paragraph 1 -Microkernel -Jon S.&lt;br /&gt;
&lt;br /&gt;
The kernel is the most important part of an operating system. An operating system could not function without the kernel.  &lt;br /&gt;
&lt;br /&gt;
A kernel is the lowest level section of an operating system.   Within a system, it has the most privileges.  It runs along side of the ‘user space’. It is in the ‘user space’ where a user has access. This is also where the user can run its applications and libraries.[8]  This leaves the kernel with the need to manage the other necessary processes. For example, the kernel could manage the File Systems and complete process scheduling.  The kernel is layered with the most authoritative process on its lowest level.[8]  A monolithic kernel, which is a kernel that contains all mandatory processes within itself, was the common kernel type of the earlier versions of today’s operating systems utilized.  However, this architecture had problems. [8]  If the kernel needed to be updated with more code, or a change in the system, the entire kernel would need to be compiled. Therefore, due to the amount of processes within it, it would take an inefficient amount of time.  Here, a microkernel becomes practical.&lt;br /&gt;
&lt;br /&gt;
The concept of a microkernel, is to reduce  the code within the kernel. The microkernel is only included in the kernel if it would impact the system. There are a variety of ways the system could be affected if a microkernel were to be implemented, for example, there would be increased performance and efficiency. [7] So, a microkernel is a kernel that has a reduced amount of mandatory software within itself.  This means that it contains less software that it has to manage, and has a reduced size.  A microkernel that emerged at the end of the 1980’s to the early 1990’s has the structure that processes like the File Systems and the Drivers are removed from it, leaving the kernel with process control and input/out control, and interrupts.  [8] This new structure makes the system much more modular, and easier to provide solutions.  If a driver must be patched or upgraded, the kernel does not need to be recompiled.  [7] The old driver can be removed, and while the device waits for the system to recognize it, the operating system replaces the driver.  This lets real-time updating, and it can be done while the computer is still functional.  This can reduce the complete crash of the system.  If a device fails, the kernel will not crash itself, like a monolithic kernel would.  The microkernel can reload the driver of the device that failed and continue functioning.  [7]  &lt;br /&gt;
&lt;br /&gt;
Want more on the scheduling?  I can do that if wanted. -key note on exokernel&#039;s mutiplexing vs microkernel&#039;s messaging, exo more efficient so perhaps running with the idea that messaging b/w processes not necessarily the ideal way need to also start outlaying weaknesses in the design as well in order to play up the idea that an exokernel just does it better -Slade&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Paragraph 2 -Virtual Machine -Steph L.&lt;br /&gt;
&lt;br /&gt;
A Virtual Machine, or VM, is a software abstraction of a physical machine. This entails virtualization of the physical machines resources in order to share them among OS run in the VM. Virtualizing these resources allow the OS to run as if it were on a full machine when, in reality, it is actually running in a virtualized environment on top of a hostOS, the OS actually running on the machine, sharing the resources.&lt;br /&gt;
&lt;br /&gt;
Virtual Machines generally contain two key components, the Virtual Machine Monitor, or VMM and the VM.&lt;br /&gt;
&lt;br /&gt;
The VMM, also known as the hypervisor, manages the virtualization of the physical resources and the interactions with the VM running on top. [4] In other words, it mediates between the virtualized world and the physical world, keeping them separate and monitoring their interactions with each other. The hypervisor is what allows the VM to operate as if it were on its own machine by handling any requests to resources and maintaining these requests with what has actually been provided to the VM by the hostOS.  The hostOS provides management for the VMM as well as allowing physical access to devices, hardware and drivers. [6]&lt;br /&gt;
&lt;br /&gt;
The VM is what contains the OS we are running through virtualization. [6] This OS is called the guestOS and it will only be able to access any resources that have been made available to the VM by the hostOS. [6] Otherwise, the guestOS will not know about any other resources and does not have direct access to physical hardware. This will be taken care of by the VMM but the guestOS will execute as its own machine, unaware of this mediator.&lt;br /&gt;
&lt;br /&gt;
There are various ways of implementing hardware virtualization in a system to allow VMs to run. This includes device emulation, paravirtualization and dedicated devices. [9]&lt;br /&gt;
&lt;br /&gt;
In device emulation, the VMM provides a complete virtualization of a device for the guestOS to interact with, in software. [9] The VMM will map this virtualized device to the physical resource and handle any interactions between them. This will usually include converting instructions from the guestOS into instructions that are compatible with the device. [9] Device emulation allows for the VM to be migrated easily to another machine as it is not dependent on the physical devices but on the software emulations instead. [9] It also allows for simpler multiplexing between multiple virtual machines as it can handle sharing though these virtualized devices. [9] A drawback of emulation, however, is poor performance as the VMM must handle every request and convert them to be compatible with the physical device. [9] However, despite its poor performance, emulation is the most common form of virtualization.&lt;br /&gt;
&lt;br /&gt;
Paravirtualization allows for a boost in performance by having the guestOS and the hostOS work together to improve performance. [9] In paravirtualization, the guestOS is not a native OS and must be modified so that it is aware that it is a virtualized system. [9] As the guestOS is aware of this, it can now make better decisions about how it accesses devices. As the guestOS will be able to handle its decisions better, the VMM’s responsibility is reduced as it now does not have to translate between the guestOS and the physical devices. [9] Though the performance boost is a great advantage, there are many disadvantages to this. You can only use paravirtualization if you can implement the modifications to the guestOS. Not everything can be paravirtualized and as such, this limits the cases in which this method can be used. [9] Also, every guestOS must be modified in order to be used in paravirtualization. The modifications will differ in various OS and so, there is also the task of implementing these changes to make a guestOS compatible. [9]&lt;br /&gt;
&lt;br /&gt;
Instead of virtualizing the hardware and mediating between with the VMM, dedicated devices allow mapping directly to the guestOS. [9] In this method, the device will use the guestOS’s drivers instead of the hostOS’s. [9] Using this method allows the guestOS to use the hardware to its full extent without having to deal with the VMM. This simplifies the VMM by eliminating the overhead in virtualizating the hardware and handling the requests to devices. [9] However, there are limited physical resources to be dedicated to a guestOS and this also makes migration difficult as the guestOS is dependent on the physical device. [9]&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;notes&#039;&#039;&#039;&lt;br /&gt;
- it ended up being quite lengthy. I mainly focused on the device virtualization rather than the architecture of a VM (like x86 virtualization). I&#039;ll put up my notes for the paper I found for virtualization. I didn&#039;t talk about Xen or VMware though. If any of that is needed, I can try to continue working on it tonight but I have another priority.&lt;br /&gt;
&lt;br /&gt;
-try focusing on the emulation side of VM where emulation&#039;s weaknesses vs direct hardware access or custom abstraction that exokernels -Slade&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Paragraph 3 -Exokernel -Corey L &lt;br /&gt;
&lt;br /&gt;
Paragraph 4 - Contrast/Compromise --[[User:Asoknack|Asoknack]]&lt;br /&gt;
&lt;br /&gt;
Conclusion - Jon S.   -  Only a sentence per paragraph, excluding Intro&lt;br /&gt;
&lt;br /&gt;
Sweet.  Looks like we got it covered.  We should read each others parts and put suggestions and edits. One of us should try and change it to one style if there are contradictions. And to put it on the main page.  We can figure that out tomorrow.  - Jon S&lt;br /&gt;
&lt;br /&gt;
Once the other parts are up and you see anything you know of as a good reference to back it up, put the link so we can use it. -Slade&lt;br /&gt;
&lt;br /&gt;
I made some edits to the first two paragraphs. I just reworded some of the unclear sentences and some grammatical errors. I&#039;ll work on editing more of it after comp 3007. Also when all the parts are up i can go through it and link the paragraphs together so it can be read more like an essay  --[[User:Aellebla|Aellebla]] 15:18, 14 October 2010 (UTC)&lt;br /&gt;
&lt;br /&gt;
==Potential Test Questions==&lt;br /&gt;
&lt;br /&gt;
Add potential test questions here:&lt;/div&gt;</summary>
		<author><name>Slay</name></author>
	</entry>
	<entry>
		<id>https://homeostasis.scs.carleton.ca/wiki/index.php?title=Talk:COMP_3000_Essay_1_2010_Question_1&amp;diff=3831</id>
		<title>Talk:COMP 3000 Essay 1 2010 Question 1</title>
		<link rel="alternate" type="text/html" href="https://homeostasis.scs.carleton.ca/wiki/index.php?title=Talk:COMP_3000_Essay_1_2010_Question_1&amp;diff=3831"/>
		<updated>2010-10-14T16:00:49Z</updated>

		<summary type="html">&lt;p&gt;Slay: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Microkernel == &lt;br /&gt;
* Moving kernel functionality into processes contained in user space, e.g. file systems, drivers&lt;br /&gt;
* Keep basic functionality in kernel to handle sharing of resources&lt;br /&gt;
* Separation allows for manageability and security, corruption in one does not necessarily cause failure in system&lt;br /&gt;
* Large amount of moving from a process to Kernel to user space and back again, this is a costly operation.&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039; Microkernel &#039;&#039;&#039;&lt;br /&gt;
* try&#039;s to minimize the amount of software that is mandatory or required [7]&lt;br /&gt;
advantages of Microkernel&lt;br /&gt;
* favors a modular system structure [7]&lt;br /&gt;
* one failure of a program does not impact any other programs [7]&lt;br /&gt;
* can support more than one api or strategies since all programs are separated [7]&lt;br /&gt;
==== Microkernel Concepts ==== &lt;br /&gt;
* piece of code is allowed in the kernel only if moving it outside the kernel would adversely affect the system. [7]&lt;br /&gt;
* any subsystem program created must be independent of all other subsystem&#039;s, any subsystem that is used can guarantee this from all other subsystems [7]&lt;br /&gt;
===== Address Space =====&lt;br /&gt;
* a mapping that relates the physical page to the virtual page. [7]&lt;br /&gt;
* processor specific [7]&lt;br /&gt;
* hide&#039;s the hardware&#039;s concept of address space [7]&lt;br /&gt;
* based off the idea of recursion each subsystem has it&#039;s own address space [7]&lt;br /&gt;
* the micro kernel provides 3 operations [7]&lt;br /&gt;
** Grant [7]&lt;br /&gt;
*** allows the owner to give a page to a recipient, provided the recipient want&#039;s it the page is removed from the owner&#039;s address space and but in the recipients. [7]&lt;br /&gt;
*** must be available to the owner. [7]&lt;br /&gt;
** Map [7]&lt;br /&gt;
*** allows the user to share a page with a recipient [7]&lt;br /&gt;
*** page is not removed from the owner&#039;s address space. [7]&lt;br /&gt;
** Flush [7]&lt;br /&gt;
*** remove&#039;s the page from all recipients address space [7]&lt;br /&gt;
*** how does this work with Grant --[[User:Asoknack|Asoknack]] 19:10, 12 October 2010 (UTC)&lt;br /&gt;
* allows memory management and paging out side the kernel&lt;br /&gt;
* Map and flush is required for memory manger&#039;s and pagers [7]&lt;br /&gt;
* can be used to implement access right&#039;s [7]&lt;br /&gt;
* controlling I/O Right&#039;s and driver&#039;s are not done at kernel level [7]&lt;br /&gt;
&lt;br /&gt;
===== Thread&#039;s IPC =====&lt;br /&gt;
* Threads&lt;br /&gt;
** in the kernel [7]&lt;br /&gt;
** Since a thread has an address space , all changes to the thread need to be done by the kernel [7]&lt;br /&gt;
* IPC [7]&lt;br /&gt;
** in the kernel IPC&lt;br /&gt;
** grant and map also need IPC  (So buye the priciple above this has to be in the kernel)[7]&lt;br /&gt;
** basic way for sub process to communicate. [7]&lt;br /&gt;
* Interrupts&lt;br /&gt;
** partially in the kernel [7]&lt;br /&gt;
** hard ware is a set of thread&#039;s which are empty except for there unique sender id [7]&lt;br /&gt;
** transformation of the message to the interrupt is done in the kernel [7]&lt;br /&gt;
** the kernel is not involved in device - specific interrupt&#039;s and does not understand the interrupt. [7]&lt;br /&gt;
*** resting the interrupt is done at user level [7]&lt;br /&gt;
** if a privileged command is need it is done implicitly the next time an IPC command is sent from the device [7]&lt;br /&gt;
&lt;br /&gt;
===== Unique Identifiers =====&lt;br /&gt;
&lt;br /&gt;
== Virtual Machine ==&lt;br /&gt;
* Partitioning or virtualizing resources among OS virtualization running on top of host OS&lt;br /&gt;
* Virtualized OS believe running on full machine on its own&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
System Level Virtualization&lt;br /&gt;
&lt;br /&gt;
=== VMM ===&lt;br /&gt;
* stands for Virtual Machine Monitor, also known as the hyper-visor[4]&lt;br /&gt;
* responsible for virtualization of hardware(mapping physical to virtual) and the VM that run on top of the virtuallized hardware [4]&lt;br /&gt;
* usually a small os with no drivers , so it is coupled with a linux distro that provides device / hardware access [4]&lt;br /&gt;
** the os that the VMM is using for driver&#039;s is called the hostOS [6]&lt;br /&gt;
*the hostOS provides login and physical access to the hardware as well as management for the VMM [6]&lt;br /&gt;
=== VM ===&lt;br /&gt;
* the OS that the vm is running is called the guestOS [6]&lt;br /&gt;
* the guestOS only sees resources that have been allocated to the VM [6]&lt;br /&gt;
==== three approaches ====&lt;br /&gt;
*Type I virtualization [5]&lt;br /&gt;
** runs off the physical hardware [4]&lt;br /&gt;
** Isolation of the guestOs from the hardware is done threw processe level protection meachnism[6]&lt;br /&gt;
*** ring 0 = VMM [6]&lt;br /&gt;
*** ring 1 = VM [6]&lt;br /&gt;
*** this means all instructions from the VM must go threw the VMM [6]&lt;br /&gt;
** since there can be multiple VM&#039;s on a computer the scheduling is done by the VMM [6]&lt;br /&gt;
** on boot the VMM creates a hardware platform for the VM [6]&lt;br /&gt;
** load&#039;s the VM kernel into virtual memory and then boot&#039;s it like a regular computer [6]&lt;br /&gt;
** ex. Xen [4]&lt;br /&gt;
*Type II virtualization [5]&lt;br /&gt;
** run off the host Os [4]&lt;br /&gt;
** ex. VMware , QEMU [4]&lt;br /&gt;
* Para-virtualization [6]&lt;br /&gt;
** Similar to Type but use the HostOs for Device driver access [6]&lt;br /&gt;
** Provide a virtualization that is similar to hardware [From the paper posted, no citation yet]&lt;br /&gt;
** GuestOS and Hypervisor work together to improve performance&lt;br /&gt;
---&lt;br /&gt;
Classical Virtualization&lt;br /&gt;
* VMMs allow programs in virtual environments to run natively other than resource usage&lt;br /&gt;
** Dominant instructions executed directly on cpu&lt;br /&gt;
** vmm completely controls system resources&lt;br /&gt;
** often need to emulate every native instruction which would severely effect the performance&lt;br /&gt;
** sensitive instruction that violate safety and encapsulation&lt;br /&gt;
** vmm handles them as priviledged instructions&lt;br /&gt;
&lt;br /&gt;
x86 Virtualization&lt;br /&gt;
* virtualization in personal work stations rather than mainframes&lt;br /&gt;
** rings that allow isolation between virtual machines&lt;br /&gt;
** most privileged in ring 0 and least in ring 3. The operating system runs in ring 0 and user apps in ring 3&lt;br /&gt;
*** vmm in ring 0 and vms in lesser privilege rings (1 or 3)&lt;br /&gt;
*** guestOS believes its in ring 0&lt;br /&gt;
* address space compression, where to run the VMM&lt;br /&gt;
** if run using guest address space, guest can find out its virtualized or compromise the isolation&lt;br /&gt;
* does not trap all sensitive instructions but can handle them, violates classical virtualization description&lt;br /&gt;
* some privileged access fail without faulting&lt;br /&gt;
* interrupt virtualization - VMM handles AND guestOS handles&lt;br /&gt;
* binary translation - improve performance&lt;br /&gt;
* rewriting instructions and trapping before problems arrise&lt;br /&gt;
&lt;br /&gt;
Paravirtualization&lt;br /&gt;
* guestOS become exposed to vm information so that the guest is aware that it is virtualized and can make decisions based on this&lt;br /&gt;
* allows to avoid problem instructions&lt;br /&gt;
* Xen&lt;br /&gt;
* guestOS must be modified and is not natively running&lt;br /&gt;
**works with the hostOS to run efficiently&lt;br /&gt;
&lt;br /&gt;
VMM types&lt;br /&gt;
* hostedVMM - executes in hostOS and uses the drivers and support of the OS&lt;br /&gt;
* Stand-aloneVMM - runs directly on hardware and uses it&#039;s own drivers and services&lt;br /&gt;
* hybridVMM - runs a serviceOS where requests to hardware go through (I/O)&lt;br /&gt;
&lt;br /&gt;
Device Emulation&lt;br /&gt;
* implement real hardware in software&lt;br /&gt;
* completely virtual device that the guest interacts with&lt;br /&gt;
* mapped to physical hardware that handles the interactions but the emulation allows conversion&lt;br /&gt;
* allows the vm to be easily migrated between machines as it does not rely on the physical hardware&lt;br /&gt;
* allows having multiple vms and simplifies sharing (multiplexing)&lt;br /&gt;
* poor performance as the vmm needs to do a lot to virtulize the machine&lt;br /&gt;
&lt;br /&gt;
Paravirtualization&lt;br /&gt;
* modified guestOS to cooperate with VMM &lt;br /&gt;
* VMM does not have to do everything to handle device drivers&lt;br /&gt;
* not everything can be paravirtualized&lt;br /&gt;
* proprietary os and device drivers can&#039;t be paravirtualized&lt;br /&gt;
* still allows an increase in performance&lt;br /&gt;
* eventing or callback mechanism&lt;br /&gt;
** guestOS modifies interrupt mechs&lt;br /&gt;
* modifications are not applicable to all guestOS&lt;br /&gt;
&lt;br /&gt;
Dedicated Devices&lt;br /&gt;
* does not virtualize device but assigns directly to guest vm&lt;br /&gt;
* uses guest&#039;s drivers instead of host&lt;br /&gt;
* simplifiest vmm by removing handing of i/o securily&lt;br /&gt;
* limited physical devices that can be dedicated&lt;br /&gt;
* dificult to migrate vm as it depends on the pairing with this resource&lt;br /&gt;
* elims over-head of virtualization and simplicity in vmm&lt;br /&gt;
* direct memory access not supported&lt;br /&gt;
&lt;br /&gt;
== Exokernel ==&lt;br /&gt;
* Micro-kernel architecture with limited abstractions, ask for resource, get resource not resource abstraction&lt;br /&gt;
* Less functionality provided by kernel, security and handling of resource sharing&lt;br /&gt;
* Once application receives resource, it can use it as it wishes/in control&lt;br /&gt;
* Keep the basic kernel to handle allocating resources and sharing rather than developing straight to the hardware&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
* multiplex resources securely providing protection to mutual distrustful application threw the use of secure binding&#039;s[1]&lt;br /&gt;
* Goal of the exokernel is to give LibOS maximum freedom with out allowing them to interfere with each other. to do this the exokernel separates protection from management in doing this it provide 3 important tasks[1]&lt;br /&gt;
** tracking ownership of resources [1]&lt;br /&gt;
** ensuring protection by guarding all resource usage and binding points (not to shure what binding points are)[1]&lt;br /&gt;
** revoking access to the resources [1]&lt;br /&gt;
* LibrayOS (LibOs)&lt;br /&gt;
** Reduces the number of kernel crossings[1]&lt;br /&gt;
** Not trusted by the exokernel so can be trusted by the application , Example given is a bad parameter passed to the LibOs only the application is affected.[1] (So LibOs cant interact with kernel ???)&lt;br /&gt;
** Any application running on the Exokernel can change the LibrayOs freely [1]&lt;br /&gt;
** Application that use LibOS that implement standard interfaces (POSIX) will be portable on any system with the same interface [1]&lt;br /&gt;
** LibOs can be made portable if it is designed to interact with a low-level machine independent level to hide hardware details [1]&lt;br /&gt;
&lt;br /&gt;
=== Exokernel Design ===&lt;br /&gt;
==== Design Principles ====&lt;br /&gt;
*Securely Expose Hardware [1]&lt;br /&gt;
** an Exokernel tries to create low level primitives that the hardware resources can be accessed from, this also includes interrupts,exceptions [1]&lt;br /&gt;
** the exokernel also export privileged instructions to the LibOS so that traditional OS abstractions can be implemented (eg Process , address pace)[1]&lt;br /&gt;
** Exokernels should avoid resource management except when required protection ( allocation , revocation , ownership)[1]&lt;br /&gt;
** application based resource management is the best way to build flexible efficient flexible systems [1]&lt;br /&gt;
*Expose allocation[1]&lt;br /&gt;
** allow LibOs to request physical resources [1]&lt;br /&gt;
** resource allocation should not be automatic, the LibOS should participate in every single allocation decision [1]&lt;br /&gt;
*Expose Names[1]&lt;br /&gt;
** Use physical name&#039;s when ever possible[3] (not to sure what physical names are, I think it is as simple as what the hardware is called)--[[User:Asoknack|Asoknack]] 20:27, 9 October 2010 (UTC)&lt;br /&gt;
** Physical names capture useful information [3]&lt;br /&gt;
*** safer than and less resource intensive than virtual names as no translations are needed[3]&lt;br /&gt;
*Expose Revocation [1]&lt;br /&gt;
** use visible revocation protocol [1]&lt;br /&gt;
** allows well behaved LibOS to preform application level resource management [1]&lt;br /&gt;
** Visible revocation allows the LibOS to choose what instance of the resource to release[1](Visible means that when revocation happens the exokernel tell the LibOS that resource is being revoked)&lt;br /&gt;
&#039;&#039;&#039; Policy &#039;&#039;&#039;&lt;br /&gt;
* LibOS handle resource policy decisions&lt;br /&gt;
* Exokernels have a policy to decided between competing LibOS (Priority , share of resources)&lt;br /&gt;
** it enforces this threw allocation and deallocation (every thing can achieved threw this even what block to write and such)&lt;br /&gt;
&lt;br /&gt;
==== Secure Bindings ====&lt;br /&gt;
* Used by the exokernel to allow the LibOS to bind to resources [1]&lt;br /&gt;
* Allows the separation of protection and resource use [1]&lt;br /&gt;
* only checks authorization during bind time [1]&lt;br /&gt;
** Application&#039;s with complex needs for resources only authorized during bind.[1]&lt;br /&gt;
* access checking is done during access time and there is no need to understand complex resources needs during access[1]&lt;br /&gt;
** (this means that the exokernel checks once to make sure an application has authorization once approved, when the application tries to use the resource the exokernel is only concerned about policy conflict&#039;s)--[[User:Asoknack|Asoknack]] 18:20, 9 October 2010 (UTC)&lt;br /&gt;
** allows the kernel to protect the resources with out understanding what the resource is [1]&lt;br /&gt;
*three way&#039;s to implement&lt;br /&gt;
* Hardware Mechanisms [1]&lt;br /&gt;
* Software caching [1]&lt;br /&gt;
* Downloading application code [1]&lt;br /&gt;
&#039;&#039;&#039; Downloading Code to the Kernel &#039;&#039;&#039;&lt;br /&gt;
* used to implement secure bindings , and improve performance[1]&lt;br /&gt;
** eliminate the number of kernel crossings [1]&lt;br /&gt;
** downloaded code can be run with out the application to be scheduled [2]&lt;br /&gt;
==== Visible Resource Revocation ====&lt;br /&gt;
* Used for most resources [1]&lt;br /&gt;
** allows for LibOS to help with deallocation [1]&lt;br /&gt;
** LibOS are able to garner what resources are scare [1]&lt;br /&gt;
* Slower than Invisible as application involvement is required [1]&lt;br /&gt;
** ex of when invisible is used is Processor addressing-context identifiers [1]&lt;br /&gt;
==== Abort Protocol ====&lt;br /&gt;
* allows the exokernel to take resources away from the LibOS [1]&lt;br /&gt;
* used when the LibOS fails to respond to the revocation request [1]&lt;br /&gt;
* Exokernel must be careful not to delete as the LibOS might need to write some system critical data to the resource [1]&lt;br /&gt;
&lt;br /&gt;
== Comparisons  ==&lt;br /&gt;
====Exokernel/Microkernel====&lt;br /&gt;
&#039;&#039;&#039;Similarities&#039;&#039;&#039;&lt;br /&gt;
* Limited functionality in kernel&lt;br /&gt;
** functionality in kernel to handle sharing of resources and security&lt;br /&gt;
** avoids programming directly to hardware which creates a dependency&lt;br /&gt;
* Additional functionality provided in user space as processes&lt;br /&gt;
&#039;&#039;&#039;Differences&#039;&#039;&#039;&lt;br /&gt;
* Minimal abstractions provided by the kernel&lt;br /&gt;
** Applications given more power in exokernel&lt;br /&gt;
&lt;br /&gt;
====Exokernel/VM====&lt;br /&gt;
&#039;&#039;&#039;Similarities&#039;&#039;&#039;&lt;br /&gt;
* Idea of partitioning resources between applications/OSs&lt;br /&gt;
* &amp;quot;Control&amp;quot; of resource given&lt;br /&gt;
* Isolation from other applications/OSs&lt;br /&gt;
&#039;&#039;&#039;Differences&#039;&#039;&#039;&lt;br /&gt;
* Exokernel runs applications, VM runs OS&lt;br /&gt;
* VM uses a hostOS and guestOSs run on top&lt;br /&gt;
* Virtualization on VMs, Exokernel deals with real resources&lt;br /&gt;
* VM hides a lot of information because it emulates. Exokernel does not.&lt;br /&gt;
&lt;br /&gt;
====Microkernel/VM====&lt;br /&gt;
&#039;&#039;&#039;Differences&#039;&#039;&#039;&lt;br /&gt;
* With a virtual machine, you are not virtualizing apps like with a microkernel but virtualizing an entire Operating System.&lt;br /&gt;
* This can be costly but the benefits are that it&#039;s easier and all the standard OS features are available.&lt;br /&gt;
&lt;br /&gt;
== References ==&lt;br /&gt;
[1]&amp;lt;nowiki&amp;gt; Engler, D. R., Kaashoek, M. F., and O&#039;Toole, J. 1995. Exokernel: an operating system architecture for application-level resource management. In Proceedings of the Fifteenth ACM Symposium on Operating Systems Principles  (Copper Mountain, Colorado, United States, December 03 - 06, 1995). M. B. Jones, Ed. SOSP &#039;95. ACM, New York, NY, 251-266. DOI= http://doi.acm.org/10.1145/224056.224076 &amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[2]&amp;lt;nowiki&amp;gt;Engler, Dawson R. &amp;quot;The Exokernel Operating System Architecture.&amp;quot; Diss. Massachusetts Institute of Technology, Dept. of Electrical Engineering and Computer Science, 1998. Web. 9 Oct. 2010. &amp;lt;http://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.61.5054&amp;amp;rep=rep1&amp;amp;type=pdf&amp;gt;.&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[3]&amp;lt;nowiki&amp;gt;Kaashoek, M. F., Engler, D. R., Ganger, G. R., Briceño, H. M., Hunt, R., Mazières, D., Pinckney, T., Grimm, R., Jannotti, J., and Mackenzie, K. 1997. Application performance and flexibility on exokernel systems. In Proceedings of the Sixteenth ACM Symposium on Operating Systems Principles  (Saint Malo, France, October 05 - 08, 1997). W. M. Waite, Ed. SOSP &#039;97. ACM, New York, NY, 52-65. DOI= http://doi.acm.org/10.1145/268998.266644 &amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[4]&amp;lt;nowiki&amp;gt;Vallee, G.; Naughton, T.; Engelmann, C.; Hong Ong; Scott, S.L.; , &amp;quot;System-Level Virtualization for High Performance Computing,&amp;quot; Parallel, Distributed and Network-Based Processing, 2008. PDP 2008. 16th Euromicro Conference on , vol., no., pp.636-643, 13-15 Feb. 2008&lt;br /&gt;
DOI= http://doi.acm.org/10.1109/PDP.2008.85 &amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[5]&amp;lt;nowiki&amp;gt;Goldberg, R. P. 1973. Architecture of virtual machines. In Proceedings of the Workshop on Virtual Computer Systems  (Cambridge, Massachusetts, United States, March 26 - 27, 1973). ACM, New York, NY, 74-112. DOI= http://doi.acm.org/10.1145/800122.803950 &amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[6]&amp;lt;nowiki&amp;gt;Vallee, G., Naughton, T., and Scott, S. L. 2007. System management software for virtual environments. In Proceedings of the 4th international Conference on Computing Frontiers (Ischia, Italy, May 07 - 09, 2007). CF &#039;07. ACM, New York, NY, 153-160. DOI= http://doi.acm.org/10.1145/1242531.1242555 &amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[7]&amp;lt;nowiki&amp;gt;Liedtke, J. 1995. On micro-kernel construction. In Proceedings of the Fifteenth ACM Symposium on Operating Systems Principles  (Copper Mountain, Colorado, United States, December 03 - 06, 1995). M. B. Jones, Ed. SOSP &#039;95. ACM, New York, NY, 237-250. DOI= http://doi.acm.org/10.1145/224056.224075 &amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[8]&amp;lt;nowiki&amp;gt;Microkernel verses monolithic kernel&lt;br /&gt;
http://www.vmars.tuwien.ac.at/courses/akti12/journal/04ss/article_04ss_Roch.pdf  - Roch&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
I will site it/reference it better later&lt;br /&gt;
&lt;br /&gt;
[9]Fisher-Ogden J. 2006. Hardware Support for Efficient Virtualization. University of California, San Diego. http://cseweb.ucsd.edu/~jfisherogden/hardwareVirt.pdf&lt;br /&gt;
&lt;br /&gt;
Not completely sure of the citation style used above.&lt;br /&gt;
&lt;br /&gt;
== Unsorted ==&lt;br /&gt;
An overview of exokernels,virtual machines, microkernels *[http://www2.supchurch.org:10999/files/school/classes/CSCI4730/Lectures/grad-structures.ppt Overview](Power Point)&amp;lt;br&amp;gt;&lt;br /&gt;
Should not be used as a source but an overview.&lt;br /&gt;
&lt;br /&gt;
The original paper on [http://portal.acm.org/citation.cfm?id=224076 Exokernels] --[[User:Gautam|Gautam]] 22:39, 6 October 2010 (UTC)&lt;br /&gt;
&lt;br /&gt;
Exokernel-&lt;br /&gt;
Minimalistic abstractions for developers&lt;br /&gt;
Exokernels can be seen as a good compromise between virtual machines and microkernels in the sense that exokernels can give that low level access to developers similar to direct access through a protected layer and at the same time can contain enough hardware abstraction to allow similar benefit of hiding the hardware resources to application programs.&lt;br /&gt;
Exokernel – fewest hardware abstractions to developer&lt;br /&gt;
Microkernel - is the near-minimum amount of software that can provide the mechanisms needed to implement an operating system&lt;br /&gt;
Virtual machine is a simulation of any or devices requested by an application program&lt;br /&gt;
Exokenel – I’ve got a sound card&lt;br /&gt;
Virtual Machine – I’ve got the sound card you’re looking for, perfect virtual match&lt;br /&gt;
Microkernel – I’ve got sound card that plays Khazikstan sound format only&lt;br /&gt;
MicroKernel - Very small, very predictable, good for schedualing (QNX is a microkernel - POSIX compatable, benefits of running linux software like modern browsers) &lt;br /&gt;
&lt;br /&gt;
This is some ideas I&#039;ve got on this question, please contribute below&lt;br /&gt;
-Rovic&lt;br /&gt;
&lt;br /&gt;
Outlining some main features here as I see them.&lt;br /&gt;
&lt;br /&gt;
I found that the exokernel was an even lower-level design than the microkernel, closer to the hardware without abstraction. They have the same architecture with the basic functionality contained in the kernel to manage everyone. As the exokernel &amp;quot;gives&amp;quot; the resource to the application it can use the resource in isolation of other applications (until forced to shared) much like VMs receive their resources, either partitioned or virtualized, and execute as if its running on its own machine. There is this similar notion of partitioning the resources among applications/OS and allowing them to take control of what they have. &lt;br /&gt;
&lt;br /&gt;
I&#039;ll locate some references later on. --[[User:Slay|Slay]] 15:00, 7 October 2010 (UTC)&lt;br /&gt;
&lt;br /&gt;
I&#039;m just going to post my answer for question 1 on the individuel assignment and hope it helps. --[[User:Aellebla|Aellebla]] 15:06, 12 October 2010 (UTC)&lt;br /&gt;
&lt;br /&gt;
The design of the micro kernel was to take everything they could out of the Kernel and put it into a process. For ex, networking would be put into a process instead of staying in the kernel. The micro kernel dev&#039;s tried to keep lots of things in user space for efficiency. But one major problem with this is there would be a large amount of moving from a process to the kernel to user space and back again and this is a costly, non efficient process.It was an application specific OS, there was no multiplexing. With a virtual machine you are not virtualizing apps like with a microkernel but virtualizing an entire Operating System. This is very heavy however but the benefits are that it‟s easy and all the standard OS features are there whereas in a microkernel setup they would not all be there and this can be seen as a compromise.&lt;br /&gt;
&lt;br /&gt;
Exokernels can be seen as a compromise to virtual machines and microkernels because virtual machines emulate and exokernels do not. When you emulate something you hide a lot of the actual information because you wouldn‟t be able to see the „real‟ hardware. If we look at a virtual box setup running Linux, and we go look at all the hardware, it will be displayed as fake hardware.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Maybe we can have an introduction - paragraph or so on each type - then similarities - differences - and the compromise.  I am going to do some research and writing this weekend and I will put some up  -- Jslonosky&lt;br /&gt;
&lt;br /&gt;
btw in my page (i guess you can call it that) i have some resources i have found  --[[User:Asoknack|Asoknack]] 15:50, 8 October 2010 (UTC)&lt;br /&gt;
- Wow, nice man. I will go ahead and write up the descriptive paragraphs on each kernel and virtual machine if no one minds. --Jslonosky&lt;br /&gt;
&lt;br /&gt;
I think we should divide up the paragraphs and proofread each others instead. (Are there only 4 of us?) I don&#039;t have much time to work on this today though but I&#039;ll try to work on it tomorrow morning. - Slay&lt;br /&gt;
&lt;br /&gt;
Sure guy.  That sounds good.  There should be 5 or 6 of us though.. . Oh well. Their loss.  I will do some before or after work today. Ill start with Microkernel since there is not a large amount of info here, and so we don&#039;t overlap each other - JSlonosky&lt;br /&gt;
&lt;br /&gt;
yeah i think there was more like 7 of us btw if any one has any more information feel free to add it would be nice if you add the references so that way citing is really easy on  acm.org it will auto give you the citation info (where it says Display Formats click on ACM Ref  and new window with the citation info auto pop&#039;s up) --[[User:Asoknack|Asoknack]] 02:28, 11 October 2010 (UTC)&lt;br /&gt;
&lt;br /&gt;
I added an outline of the similarities and differences. Add any more that I missed. These are from observations so I don&#039;t have any resources. -Slay&lt;br /&gt;
That&#039;s probably fine.  Our textbook probably outlines some of them, so I am sure we can find a few there - JSlonosky&lt;br /&gt;
&lt;br /&gt;
Talked to the teacher today and for VM he said we should focus on the implementation such as Xen and VMware , he also said to talk about para virtualization --[[User:Asoknack|Asoknack]] 18:42, 12 October 2010 (UTC)&lt;br /&gt;
&lt;br /&gt;
A paper about emulation and paravirtualization [http://portal.acm.org/citation.cfm?id=1189289&amp;amp;coll=GUIDE&amp;amp;dl=GUIDE&amp;amp;CFID=105648137&amp;amp;CFTOKEN=47153176&amp;amp;ret=1#Fulltext link] - Slay&lt;br /&gt;
&lt;br /&gt;
Oh no big words.  Sorry about the Microkernels not done yet.  Working on an outline now.  Finally found how to access the ACM through carleton.  Gawd. &lt;br /&gt;
I am planning an outline, quick bit about kernels in general, (maybe mention monolith kernels?), and what microkernels do.&lt;br /&gt;
I see the microkernel outline info and a reference ( Whomever did that == hero: true) about the scheduling and the Memory management.  Should that be included in kernels in general and then mention what microkernels build upon/change? - JSlonosky&lt;br /&gt;
&lt;br /&gt;
Sorry late to the party here. My mistake was not checking the discussion page when I checked in. I don&#039;t want to trample anyone&#039;s current work but I don&#039;t see any work on the final essay done. I would love to help just need to know where I can step in so as to not screw anyone else up. -- [[User:Cling|Cling]]&lt;br /&gt;
&lt;br /&gt;
I don&#039;t think I&#039;ll be able to write up something for the final essay, even though I suggested splitting it. I&#039;ll do research tonight though on the paravirtualization. If I find the time, I&#039;ll try to write something. Sorry about that. --[[User:Slay|Slay]] 21:52, 13 October 2010 (UTC)&lt;br /&gt;
&lt;br /&gt;
We all have 3004 to do too, man.  I do not think anyone has chosen to do Virtual Machine section yet, or the Exokernel itself. But the contrast paragraph and the intro is chosen, and intro is done.  Microkernel and kernel will be done in a hour I hope. -- JSlonosky&lt;br /&gt;
&lt;br /&gt;
I can attempt to write up anything, the issue is I don&#039;t have any context on what to write, how do I tie it in to the rest of the essay? I only have a Japanese Quiz tomorrow morning then I should be good to write anything up for the rest of the day. As someone who has already written part of the essay, and assuming I attempt the exokernel section, how much do you think I should write? Should it just be about exokernel or should there be comparisons to the other topics? Thanks --[[User:Cling|Cling]] 23:14, 13 October 2010 (UTC)&lt;br /&gt;
&lt;br /&gt;
Go with the Exokernel itself.  Slade is getting off work in a hour and we can double check what he is doing then.  We can put it together tomorrow sometime, and fill in the other stuff. - JSLonosky&lt;br /&gt;
&lt;br /&gt;
I&#039;ll attempt to work on VM tonight, then. I would feel so bad if I didn&#039;t write anything. -Slay&lt;br /&gt;
&lt;br /&gt;
Still wondering how much to write, I think we should decide on a decent word count or length so we don&#039;t have one short section (which would probably be mine) and/or one massive section that dwarfs all the others. If anyone has already written a section could you post your word count so we can aim to be around there, it would obviously be just a recommendation but it&#039;s just better to be on the safe side and have everything uniform. I haven&#039;t seen any formal requirements for the essay but I could be wrong, I also haven&#039;t been to class in a while. --[[User:Cling|Cling]] 23:33, 13 October 2010 (UTC)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Yeah Slay, VM probably doesnt have much to write about.  Get something down, and we can go over it.  CLing, Just write what you think.  There is not a lot to go over if I write kernel/microkernel well enough.  What is a exokernel?  exokernel was an even lower-level design than the microkernel, closer to the hardware without abstraction, basically (As said by Slade). I will probably end up with 500 or a bit more words. -- JSlonosky&lt;br /&gt;
&lt;br /&gt;
Sound off!&lt;br /&gt;
&lt;br /&gt;
Who&#039;s actually reading this? Add your name to the list...&lt;br /&gt;
&lt;br /&gt;
Rovic P.&lt;br /&gt;
Jon Slonosky&lt;br /&gt;
Corey Ling&lt;br /&gt;
Steph Lay&lt;br /&gt;
Aaron .L&lt;br /&gt;
&lt;br /&gt;
== The Essay ==&lt;br /&gt;
&lt;br /&gt;
Let&#039;s actually breakdown the essay into components then write it here.&lt;br /&gt;
&lt;br /&gt;
I&#039;d like to go along the premise that microkernels and and virtual machines are &amp;quot;weaker&amp;quot; than exokernels in design for the essay. If anyone has any objections, add it here. &lt;br /&gt;
&lt;br /&gt;
-Slade&lt;br /&gt;
&lt;br /&gt;
 what do you mean by &amp;quot;weaker&amp;quot;(i think you mean exokernels&#039; takes the best of both worlds ) --[[User:Asoknack|Asoknack]] 02:45, 13 October 2010 (UTC)&lt;br /&gt;
&lt;br /&gt;
What I mean by weaker is that we should focus on the things microkernels and virtual machines may not do as well compared to a system based off an exokernel design and then focus on how an exokenenel can take the best of both worlds. Please choose which section you will work on, that&#039;s not to say it&#039;ll be the only part you do, but rather we&#039;ll all contribute to each part please. 1 day left.&lt;br /&gt;
-Slade&lt;br /&gt;
&lt;br /&gt;
...to the extent that exokernels be seen as a compromise between virtual machines and microkernels. &lt;br /&gt;
-I&#039;ll work on the initial intro. -Slade&lt;br /&gt;
&lt;br /&gt;
3 paragraphs that prove it&lt;br /&gt;
Explain how the key design characteristics of these three system architectures compare with each other. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
intro/thesis statement -Rovic P.&lt;br /&gt;
&lt;br /&gt;
In Computer Science, the kernel is the component at the center of  the majority of operating systems. The kernel is a bridge for applications to access the hardware level. It is responsible for managing the system&#039;s resources such as memory, disk storage, task management and networking. We are comparing Exokernels to Microkernels and Virtual Machines by looking at how the kernel goes about such management and its connections. In the Exokernel conceptual model, we can see exokernels become much smaller than microkernels because as this design shows, they are tiny and strive to keep functionality limited to protection and multiplexing of resources. The Virtual Machine Implementation of virtualizing all devices on the system may provide compatibility, but it also adds a layer of complexity within the system. This is less efficient than a real machine as it accesses the hardware indirectly. It can be observed by examining how the exokernel provides low level hardware access and provides custom abstraction to those devices. This is done in order to improve program performance as opposed to a VM&#039;s implementation. The exokernel concept has a design that can take the better concepts of microkernels and virtual machines to the extent that exokernels can be seen as a compromise between a virtual machine and a microkernel.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Paragraph 1 -Microkernel -Jon S.&lt;br /&gt;
&lt;br /&gt;
The kernel is the most important part of an operating system. An operating system could not function without the kernel.  &lt;br /&gt;
&lt;br /&gt;
A kernel is the lowest level section of an operating system.   Within a system, it has the most privileges.  It runs along side of the ‘user space’. It is in the ‘user space’ where a user has access. This is also where the user can run its applications and libraries.[8]  This leaves the kernel with the need to manage the other necessary processes. For example, the kernel could manage the File Systems and complete process scheduling.  The kernel is layered with the most authoritative process on its lowest level.[8]  A monolithic kernel, which is a kernel that contains all mandatory processes within itself, was the common kernel type of the earlier versions of today’s operating systems utilized.  However, this architecture had problems. [8]  If the kernel needed to be updated with more code, or a change in the system, the entire kernel would need to be compiled. Therefore, due to the amount of processes within it, it would take an inefficient amount of time.  Here, a microkernel becomes practical.&lt;br /&gt;
&lt;br /&gt;
The concept of a microkernel, is to reduce  the code within the kernel. The microkernel is only included in the kernel if it would impact the system. There are a variety of ways the system could be affected if a microkernel were to be implemented, for example, there would be increased performance and efficiency. [7] So, a microkernel is a kernel that has a reduced amount of mandatory software within itself.  This means that it contains less software that it has to manage, and has a reduced size.  A microkernel that emerged at the end of the 1980’s to the early 1990’s has the structure that processes like the File Systems and the Drivers are removed from it, leaving the kernel with process control and input/out control, and interrupts.  [8] This new structure makes the system much more modular, and easier to provide solutions.  If a driver must be patched or upgraded, the kernel does not need to be recompiled.  [7] The old driver can be removed, and while the device waits for the system to recognize it, the operating system replaces the driver.  This lets real-time updating, and it can be done while the computer is still functional.  This can reduce the complete crash of the system.  If a device fails, the kernel will not crash itself, like a monolithic kernel would.  The microkernel can reload the driver of the device that failed and continue functioning.  [7]  &lt;br /&gt;
&lt;br /&gt;
Want more on the scheduling?  I can do that if wanted. -key note on exokernel&#039;s mutiplexing vs microkernel&#039;s messaging, exo more efficient so perhaps running with the idea that messaging b/w processes not necessarily the ideal way need to also start outlaying weaknesses in the design as well in order to play up the idea that an exokernel just does it better -Slade&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Paragraph 2 -Virtual Machine -Steph L.&lt;br /&gt;
&lt;br /&gt;
A Virtual Machine, or VM, is a software abstraction of a physical machine. This entails virtualization of the physical machines resources in order to share them among OS run in the VM. Virtualizing these resources allow the OS to run as if it were on a full machine when, in reality, it is actually running in a virtualized environment on top of a hostOS, the OS actually running on the machine, sharing the resources.&lt;br /&gt;
&lt;br /&gt;
Virtual Machines generally contain two key components, the Virtual Machine Monitor, or VMM and the VM.&lt;br /&gt;
&lt;br /&gt;
The VMM, also known as the hypervisor, manages the virtualization of the physical resources and the interactions with the VM running on top. [4] In other words, it mediates between the virtualized world and the physical world, keeping them separate and monitoring their interactions with each other. The hypervisor is what allows the VM to operate as if it were on its own machine by handling any requests to resources and maintaining these requests with what has actually been provided to the VM by the hostOS.  The hostOS provides management for the VMM as well as allowing physical access to devices, hardware and drivers. [6]&lt;br /&gt;
&lt;br /&gt;
The VM is what contains the OS we are running through virtualization. [6] This OS is called the guestOS and it will only be able to access any resources that have been made available to the VM by the hostOS. [6] Otherwise, the guestOS will not know about any other resources and does not have direct access to physical hardware. This will be taken care of by the VMM but the guestOS will execute as its own machine, unaware of this mediator.&lt;br /&gt;
&lt;br /&gt;
There are various ways of implementing hardware virtualization in a system to allow VMs to run. This includes device emulation, paravirtualization and dedicated devices. [9]&lt;br /&gt;
&lt;br /&gt;
In device emulation, the VMM provides a complete virtualization of a device for the guestOS to interact with, in software. [9] The VMM will map this virtualized device to the physical resource and handle any interactions between them. This will usually include converting instructions from the guestOS into instructions that are compatible with the device. [9] Device emulation allows for the VM to be migrated easily to another machine as it is not dependent on the physical devices but on the software emulations instead. [9] It also allows for simpler multiplexing between multiple virtual machines as it can handle sharing though these virtualized devices. [9] A drawback of emulation, however, is poor performance as the VMM must handle every request and convert them to be compatible with the physical device. [9] However, despite its poor performance, emulation is the most common form of virtualization.&lt;br /&gt;
&lt;br /&gt;
Paravirtualization allows for a boost in performance by having the guestOS and the hostOS work together to improve performance. [9] In paravirtualization, the guestOS is not a native OS and must be modified so that it is aware that it is a virtualized system. [9] As the guestOS is aware of this, it can now make better decisions about how it accesses devices. As the guestOS will be able to handle its decisions better, the VMM’s responsibility is reduced as it now does not have to translate between the guestOS and the physical devices. [9] Though the performance boost is a great advantage, there are many disadvantages to this. You can only use paravirtualization if you can implement the modifications to the guestOS. Not everything can be paravirtualized and as such, this limits the cases in which this method can be used. [9] Also, every guestOS must be modified in order to be used in paravirtualization. The modifications will differ in various OS and so, there is also the task of implementing these changes to make a guestOS compatible. [9]&lt;br /&gt;
&lt;br /&gt;
Instead of virtualizing the hardware and mediating between with the VMM, dedicated devices allow mapping directly to the guestOS. [9] In this method, the device will use the guestOS’s drivers instead of the hostOS’s. [9] Using this method allows the guestOS to use the hardware to its full extent without having to deal with the VMM. This simplifies the VMM by eliminating the overhead in virtualizating the hardware and handling the requests to devices. [9] However, there are limited physical resources to be dedicated to a guestOS and this also makes migration difficult as the guestOS is dependent on the physical device. [9]&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;notes&#039;&#039;&#039;&lt;br /&gt;
- it ended up being quite lengthy. I mainly focused on the device virtualization rather than the architecture of a VM (like x86 virtualization). I&#039;ll put up my notes for the paper I found for virtualization. I didn&#039;t talk about Xen or VMware though. If any of that is needed, I can try to continue working on it tonight but I have another priority.&lt;br /&gt;
&lt;br /&gt;
-try focusing on the emulation side of VM where emulation&#039;s weaknesses vs direct hardware access or custom abstraction that exokernels -Slade&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Paragraph 3 -Exokernel -Corey L &lt;br /&gt;
&lt;br /&gt;
Paragraph 4 - Contrast/Compromise --[[User:Asoknack|Asoknack]]&lt;br /&gt;
&lt;br /&gt;
Conclusion - Jon S.   -  Only a sentence per paragraph, excluding Intro&lt;br /&gt;
&lt;br /&gt;
Sweet.  Looks like we got it covered.  We should read each others parts and put suggestions and edits. One of us should try and change it to one style if there are contradictions. And to put it on the main page.  We can figure that out tomorrow.  - Jon S&lt;br /&gt;
&lt;br /&gt;
Once the other parts are up and you see anything you know of as a good reference to back it up, put the link so we can use it. -Slade&lt;br /&gt;
&lt;br /&gt;
I made some edits to the first two paragraphs. I just reworded some of the unclear sentences and some grammatical errors. I&#039;ll work on editing more of it after comp 3007. Also when all the parts are up i can go through it and link the paragraphs together so it can be read more like an essay  --[[User:Aellebla|Aellebla]] 15:18, 14 October 2010 (UTC)&lt;br /&gt;
&lt;br /&gt;
==Potential Test Questions==&lt;br /&gt;
&lt;br /&gt;
Add potential test questions here:&lt;/div&gt;</summary>
		<author><name>Slay</name></author>
	</entry>
	<entry>
		<id>https://homeostasis.scs.carleton.ca/wiki/index.php?title=Talk:COMP_3000_Essay_1_2010_Question_1&amp;diff=3602</id>
		<title>Talk:COMP 3000 Essay 1 2010 Question 1</title>
		<link rel="alternate" type="text/html" href="https://homeostasis.scs.carleton.ca/wiki/index.php?title=Talk:COMP_3000_Essay_1_2010_Question_1&amp;diff=3602"/>
		<updated>2010-10-14T04:24:30Z</updated>

		<summary type="html">&lt;p&gt;Slay: /* The Essay */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Microkernel == &lt;br /&gt;
* Moving kernel functionality into processes contained in user space, e.g. file systems, drivers&lt;br /&gt;
* Keep basic functionality in kernel to handle sharing of resources&lt;br /&gt;
* Separation allows for manageability and security, corruption in one does not necessarily cause failure in system&lt;br /&gt;
* Large amount of moving from a process to Kernel to user space and back again, this is a costly operation.&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039; Microkernel &#039;&#039;&#039;&lt;br /&gt;
* try&#039;s to minimize the amount of software that is mandatory or required [7]&lt;br /&gt;
advantages of Microkernel&lt;br /&gt;
* favors a modular system structure [7]&lt;br /&gt;
* one failure of a program does not impact any other programs [7]&lt;br /&gt;
* can support more than one api or strategies since all programs are separated [7]&lt;br /&gt;
==== Microkernel Concepts ==== &lt;br /&gt;
* piece of code is allowed in the kernel only if moving it outside the kernel would adversely affect the system. [7]&lt;br /&gt;
* any subsystem program created must be independent of all other subsystem&#039;s, any subsystem that is used can guarantee this from all other subsystems [7]&lt;br /&gt;
===== Address Space =====&lt;br /&gt;
* a mapping that relates the physical page to the virtual page. [7]&lt;br /&gt;
* processor specific [7]&lt;br /&gt;
* hide&#039;s the hardware&#039;s concept of address space [7]&lt;br /&gt;
* based off the idea of recursion each subsystem has it&#039;s own address space [7]&lt;br /&gt;
* the micro kernel provides 3 operations [7]&lt;br /&gt;
** Grant [7]&lt;br /&gt;
*** allows the owner to give a page to a recipient, provided the recipient want&#039;s it the page is removed from the owner&#039;s address space and but in the recipients. [7]&lt;br /&gt;
*** must be available to the owner. [7]&lt;br /&gt;
** Map [7]&lt;br /&gt;
*** allows the user to share a page with a recipient [7]&lt;br /&gt;
*** page is not removed from the owner&#039;s address space. [7]&lt;br /&gt;
** Flush [7]&lt;br /&gt;
*** remove&#039;s the page from all recipients address space [7]&lt;br /&gt;
*** how does this work with Grant --[[User:Asoknack|Asoknack]] 19:10, 12 October 2010 (UTC)&lt;br /&gt;
* allows memory management and paging out side the kernel&lt;br /&gt;
* Map and flush is required for memory manger&#039;s and pagers [7]&lt;br /&gt;
* can be used to implement access right&#039;s [7]&lt;br /&gt;
* controlling I/O Right&#039;s and driver&#039;s are not done at kernel level [7]&lt;br /&gt;
&lt;br /&gt;
===== Thread&#039;s IPC =====&lt;br /&gt;
* Threads&lt;br /&gt;
** in the kernel [7]&lt;br /&gt;
** Since a thread has an address space , all changes to the thread need to be done by the kernel [7]&lt;br /&gt;
* IPC [7]&lt;br /&gt;
** in the kernel IPC&lt;br /&gt;
** grant and map also need IPC  (So buye the priciple above this has to be in the kernel)[7]&lt;br /&gt;
** basic way for sub process to communicate. [7]&lt;br /&gt;
* Interrupts&lt;br /&gt;
** partially in the kernel [7]&lt;br /&gt;
** hard ware is a set of thread&#039;s which are empty except for there unique sender id [7]&lt;br /&gt;
** transformation of the message to the interrupt is done in the kernel [7]&lt;br /&gt;
** the kernel is not involved in device - specific interrupt&#039;s and does not understand the interrupt. [7]&lt;br /&gt;
*** resting the interrupt is done at user level [7]&lt;br /&gt;
** if a privileged command is need it is done implicitly the next time an IPC command is sent from the device [7]&lt;br /&gt;
&lt;br /&gt;
===== Unique Identifiers =====&lt;br /&gt;
&lt;br /&gt;
== Virtual Machine ==&lt;br /&gt;
* Partitioning or virtualizing resources among OS virtualization running on top of host OS&lt;br /&gt;
* Virtualized OS believe running on full machine on its own&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
System Level Virtualization&lt;br /&gt;
&lt;br /&gt;
=== VMM ===&lt;br /&gt;
* stands for Virtual Machine Monitor, also known as the hyper-visor[4]&lt;br /&gt;
* responsible for virtualization of hardware(mapping physical to virtual) and the VM that run on top of the virtuallized hardware [4]&lt;br /&gt;
* usually a small os with no drivers , so it is coupled with a linux distro that provides device / hardware access [4]&lt;br /&gt;
** the os that the VMM is using for driver&#039;s is called the hostOS [6]&lt;br /&gt;
*the hostOS provides login and physical access to the hardware as well as management for the VMM [6]&lt;br /&gt;
=== VM ===&lt;br /&gt;
* the OS that the vm is running is called the guestOS [6]&lt;br /&gt;
* the guestOS only sees resources that have been allocated to the VM [6]&lt;br /&gt;
==== three approaches ====&lt;br /&gt;
*Type I virtualization [5]&lt;br /&gt;
** runs off the physical hardware [4]&lt;br /&gt;
** Isolation of the guestOs from the hardware is done threw processe level protection meachnism[6]&lt;br /&gt;
*** ring 0 = VMM [6]&lt;br /&gt;
*** ring 1 = VM [6]&lt;br /&gt;
*** this means all instructions from the VM must go threw the VMM [6]&lt;br /&gt;
** since there can be multiple VM&#039;s on a computer the scheduling is done by the VMM [6]&lt;br /&gt;
** on boot the VMM creates a hardware platform for the VM [6]&lt;br /&gt;
** load&#039;s the VM kernel into virtual memory and then boot&#039;s it like a regular computer [6]&lt;br /&gt;
** ex. Xen [4]&lt;br /&gt;
*Type II virtualization [5]&lt;br /&gt;
** run off the host Os [4]&lt;br /&gt;
** ex. VMware , QEMU [4]&lt;br /&gt;
* Para-virtualization [6]&lt;br /&gt;
** Similar to Type but use the HostOs for Device driver access [6]&lt;br /&gt;
** Provide a virtualization that is similar to hardware [From the paper posted, no citation yet]&lt;br /&gt;
** GuestOS and Hypervisor work together to improve performance&lt;br /&gt;
&lt;br /&gt;
== Exokernel ==&lt;br /&gt;
* Micro-kernel architecture with limited abstractions, ask for resource, get resource not resource abstraction&lt;br /&gt;
* Less functionality provided by kernel, security and handling of resource sharing&lt;br /&gt;
* Once application receives resource, it can use it as it wishes/in control&lt;br /&gt;
* Keep the basic kernel to handle allocating resources and sharing rather than developing straight to the hardware&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
* multiplex resources securely providing protection to mutual distrustful application threw the use of secure binding&#039;s[1]&lt;br /&gt;
* Goal of the exokernel is to give LibOS maximum freedom with out allowing them to interfere with each other. to do this the exokernel separates protection from management in doing this it provide 3 important tasks[1]&lt;br /&gt;
** tracking ownership of resources [1]&lt;br /&gt;
** ensuring protection by guarding all resource usage and binding points (not to shure what binding points are)[1]&lt;br /&gt;
** revoking access to the resources [1]&lt;br /&gt;
* LibrayOS (LibOs)&lt;br /&gt;
** Reduces the number of kernel crossings[1]&lt;br /&gt;
** Not trusted by the exokernel so can be trusted by the application , Example given is a bad parameter passed to the LibOs only the application is affected.[1] (So LibOs cant interact with kernel ???)&lt;br /&gt;
** Any application running on the Exokernel can change the LibrayOs freely [1]&lt;br /&gt;
** Application that use LibOS that implement standard interfaces (POSIX) will be portable on any system with the same interface [1]&lt;br /&gt;
** LibOs can be made portable if it is designed to interact with a low-level machine independent level to hide hardware details [1]&lt;br /&gt;
&lt;br /&gt;
=== Exokernel Design ===&lt;br /&gt;
==== Design Principles ====&lt;br /&gt;
*Securely Expose Hardware [1]&lt;br /&gt;
** an Exokernel tries to create low level primitives that the hardware resources can be accessed from, this also includes interrupts,exceptions [1]&lt;br /&gt;
** the exokernel also export privileged instructions to the LibOS so that traditional OS abstractions can be implemented (eg Process , address pace)[1]&lt;br /&gt;
** Exokernels should avoid resource management except when required protection ( allocation , revocation , ownership)[1]&lt;br /&gt;
** application based resource management is the best way to build flexible efficient flexible systems [1]&lt;br /&gt;
*Expose allocation[1]&lt;br /&gt;
** allow LibOs to request physical resources [1]&lt;br /&gt;
** resource allocation should not be automatic, the LibOS should participate in every single allocation decision [1]&lt;br /&gt;
*Expose Names[1]&lt;br /&gt;
** Use physical name&#039;s when ever possible[3] (not to sure what physical names are, I think it is as simple as what the hardware is called)--[[User:Asoknack|Asoknack]] 20:27, 9 October 2010 (UTC)&lt;br /&gt;
** Physical names capture useful information [3]&lt;br /&gt;
*** safer than and less resource intensive than virtual names as no translations are needed[3]&lt;br /&gt;
*Expose Revocation [1]&lt;br /&gt;
** use visible revocation protocol [1]&lt;br /&gt;
** allows well behaved LibOS to preform application level resource management [1]&lt;br /&gt;
** Visible revocation allows the LibOS to choose what instance of the resource to release[1](Visible means that when revocation happens the exokernel tell the LibOS that resource is being revoked)&lt;br /&gt;
&#039;&#039;&#039; Policy &#039;&#039;&#039;&lt;br /&gt;
* LibOS handle resource policy decisions&lt;br /&gt;
* Exokernels have a policy to decided between competing LibOS (Priority , share of resources)&lt;br /&gt;
** it enforces this threw allocation and deallocation (every thing can achieved threw this even what block to write and such)&lt;br /&gt;
&lt;br /&gt;
==== Secure Bindings ====&lt;br /&gt;
* Used by the exokernel to allow the LibOS to bind to resources [1]&lt;br /&gt;
* Allows the separation of protection and resource use [1]&lt;br /&gt;
* only checks authorization during bind time [1]&lt;br /&gt;
** Application&#039;s with complex needs for resources only authorized during bind.[1]&lt;br /&gt;
* access checking is done during access time and there is no need to understand complex resources needs during access[1]&lt;br /&gt;
** (this means that the exokernel checks once to make sure an application has authorization once approved, when the application tries to use the resource the exokernel is only concerned about policy conflict&#039;s)--[[User:Asoknack|Asoknack]] 18:20, 9 October 2010 (UTC)&lt;br /&gt;
** allows the kernel to protect the resources with out understanding what the resource is [1]&lt;br /&gt;
*three way&#039;s to implement&lt;br /&gt;
* Hardware Mechanisms [1]&lt;br /&gt;
* Software caching [1]&lt;br /&gt;
* Downloading application code [1]&lt;br /&gt;
&#039;&#039;&#039; Downloading Code to the Kernel &#039;&#039;&#039;&lt;br /&gt;
* used to implement secure bindings , and improve performance[1]&lt;br /&gt;
** eliminate the number of kernel crossings [1]&lt;br /&gt;
** downloaded code can be run with out the application to be scheduled [2]&lt;br /&gt;
==== Visible Resource Revocation ====&lt;br /&gt;
* Used for most resources [1]&lt;br /&gt;
** allows for LibOS to help with deallocation [1]&lt;br /&gt;
** LibOS are able to garner what resources are scare [1]&lt;br /&gt;
* Slower than Invisible as application involvement is required [1]&lt;br /&gt;
** ex of when invisible is used is Processor addressing-context identifiers [1]&lt;br /&gt;
==== Abort Protocol ====&lt;br /&gt;
* allows the exokernel to take resources away from the LibOS [1]&lt;br /&gt;
* used when the LibOS fails to respond to the revocation request [1]&lt;br /&gt;
* Exokernel must be careful not to delete as the LibOS might need to write some system critical data to the resource [1]&lt;br /&gt;
&lt;br /&gt;
== Comparisons  ==&lt;br /&gt;
====Exokernel/Microkernel====&lt;br /&gt;
&#039;&#039;&#039;Similarities&#039;&#039;&#039;&lt;br /&gt;
* Limited functionality in kernel&lt;br /&gt;
** functionality in kernel to handle sharing of resources and security&lt;br /&gt;
** avoids programming directly to hardware which creates a dependency&lt;br /&gt;
* Additional functionality provided in user space as processes&lt;br /&gt;
&#039;&#039;&#039;Differences&#039;&#039;&#039;&lt;br /&gt;
* Minimal abstractions provided by the kernel&lt;br /&gt;
** Applications given more power in exokernel&lt;br /&gt;
&lt;br /&gt;
====Exokernel/VM====&lt;br /&gt;
&#039;&#039;&#039;Similarities&#039;&#039;&#039;&lt;br /&gt;
* Idea of partitioning resources between applications/OSs&lt;br /&gt;
* &amp;quot;Control&amp;quot; of resource given&lt;br /&gt;
* Isolation from other applications/OSs&lt;br /&gt;
&#039;&#039;&#039;Differences&#039;&#039;&#039;&lt;br /&gt;
* Exokernel runs applications, VM runs OS&lt;br /&gt;
* VM uses a hostOS and guestOSs run on top&lt;br /&gt;
* Virtualization on VMs, Exokernel deals with real resources&lt;br /&gt;
* VM hides a lot of information because it emulates. Exokernel does not.&lt;br /&gt;
&lt;br /&gt;
====Microkernel/VM====&lt;br /&gt;
&#039;&#039;&#039;Differences&#039;&#039;&#039;&lt;br /&gt;
* With a virtual machine, you are not virtualizing apps like with a microkernel but virtualizing an entire Operating System.&lt;br /&gt;
* This can be costly but the benefits are that it&#039;s easier and all the standard OS features are available.&lt;br /&gt;
&lt;br /&gt;
== References ==&lt;br /&gt;
[1]&amp;lt;nowiki&amp;gt; Engler, D. R., Kaashoek, M. F., and O&#039;Toole, J. 1995. Exokernel: an operating system architecture for application-level resource management. In Proceedings of the Fifteenth ACM Symposium on Operating Systems Principles  (Copper Mountain, Colorado, United States, December 03 - 06, 1995). M. B. Jones, Ed. SOSP &#039;95. ACM, New York, NY, 251-266. DOI= http://doi.acm.org/10.1145/224056.224076 &amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[2]&amp;lt;nowiki&amp;gt;Engler, Dawson R. &amp;quot;The Exokernel Operating System Architecture.&amp;quot; Diss. Massachusetts Institute of Technology, Dept. of Electrical Engineering and Computer Science, 1998. Web. 9 Oct. 2010. &amp;lt;http://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.61.5054&amp;amp;rep=rep1&amp;amp;type=pdf&amp;gt;.&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[3]&amp;lt;nowiki&amp;gt;Kaashoek, M. F., Engler, D. R., Ganger, G. R., Briceño, H. M., Hunt, R., Mazières, D., Pinckney, T., Grimm, R., Jannotti, J., and Mackenzie, K. 1997. Application performance and flexibility on exokernel systems. In Proceedings of the Sixteenth ACM Symposium on Operating Systems Principles  (Saint Malo, France, October 05 - 08, 1997). W. M. Waite, Ed. SOSP &#039;97. ACM, New York, NY, 52-65. DOI= http://doi.acm.org/10.1145/268998.266644 &amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[4]&amp;lt;nowiki&amp;gt;Vallee, G.; Naughton, T.; Engelmann, C.; Hong Ong; Scott, S.L.; , &amp;quot;System-Level Virtualization for High Performance Computing,&amp;quot; Parallel, Distributed and Network-Based Processing, 2008. PDP 2008. 16th Euromicro Conference on , vol., no., pp.636-643, 13-15 Feb. 2008&lt;br /&gt;
DOI= http://doi.acm.org/10.1109/PDP.2008.85 &amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[5]&amp;lt;nowiki&amp;gt;Goldberg, R. P. 1973. Architecture of virtual machines. In Proceedings of the Workshop on Virtual Computer Systems  (Cambridge, Massachusetts, United States, March 26 - 27, 1973). ACM, New York, NY, 74-112. DOI= http://doi.acm.org/10.1145/800122.803950 &amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[6]&amp;lt;nowiki&amp;gt;Vallee, G., Naughton, T., and Scott, S. L. 2007. System management software for virtual environments. In Proceedings of the 4th international Conference on Computing Frontiers (Ischia, Italy, May 07 - 09, 2007). CF &#039;07. ACM, New York, NY, 153-160. DOI= http://doi.acm.org/10.1145/1242531.1242555 &amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[7]&amp;lt;nowiki&amp;gt;Liedtke, J. 1995. On micro-kernel construction. In Proceedings of the Fifteenth ACM Symposium on Operating Systems Principles  (Copper Mountain, Colorado, United States, December 03 - 06, 1995). M. B. Jones, Ed. SOSP &#039;95. ACM, New York, NY, 237-250. DOI= http://doi.acm.org/10.1145/224056.224075 &amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[8]&amp;lt;nowiki&amp;gt;Microkernel verses monolithic kernel&lt;br /&gt;
http://www.vmars.tuwien.ac.at/courses/akti12/journal/04ss/article_04ss_Roch.pdf  - Roch&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
I will site it/reference it better later&lt;br /&gt;
&lt;br /&gt;
== Unsorted ==&lt;br /&gt;
An overview of exokernels,virtual machines, microkernels *[http://www2.supchurch.org:10999/files/school/classes/CSCI4730/Lectures/grad-structures.ppt Overview](Power Point)&amp;lt;br&amp;gt;&lt;br /&gt;
Should not be used as a source but an overview.&lt;br /&gt;
&lt;br /&gt;
The original paper on [http://portal.acm.org/citation.cfm?id=224076 Exokernels] --[[User:Gautam|Gautam]] 22:39, 6 October 2010 (UTC)&lt;br /&gt;
&lt;br /&gt;
Exokernel-&lt;br /&gt;
Minimalistic abstractions for developers&lt;br /&gt;
Exokernels can be seen as a good compromise between virtual machines and microkernels in the sense that exokernels can give that low level access to developers similar to direct access through a protected layer and at the same time can contain enough hardware abstraction to allow similar benefit of hiding the hardware resources to application programs.&lt;br /&gt;
Exokernel – fewest hardware abstractions to developer&lt;br /&gt;
Microkernel - is the near-minimum amount of software that can provide the mechanisms needed to implement an operating system&lt;br /&gt;
Virtual machine is a simulation of any or devices requested by an application program&lt;br /&gt;
Exokenel – I’ve got a sound card&lt;br /&gt;
Virtual Machine – I’ve got the sound card you’re looking for, perfect virtual match&lt;br /&gt;
Microkernel – I’ve got sound card that plays Khazikstan sound format only&lt;br /&gt;
MicroKernel - Very small, very predictable, good for schedualing (QNX is a microkernel - POSIX compatable, benefits of running linux software like modern browsers) &lt;br /&gt;
&lt;br /&gt;
This is some ideas I&#039;ve got on this question, please contribute below&lt;br /&gt;
-Rovic&lt;br /&gt;
&lt;br /&gt;
Outlining some main features here as I see them.&lt;br /&gt;
&lt;br /&gt;
I found that the exokernel was an even lower-level design than the microkernel, closer to the hardware without abstraction. They have the same architecture with the basic functionality contained in the kernel to manage everyone. As the exokernel &amp;quot;gives&amp;quot; the resource to the application it can use the resource in isolation of other applications (until forced to shared) much like VMs receive their resources, either partitioned or virtualized, and execute as if its running on its own machine. There is this similar notion of partitioning the resources among applications/OS and allowing them to take control of what they have. &lt;br /&gt;
&lt;br /&gt;
I&#039;ll locate some references later on. --[[User:Slay|Slay]] 15:00, 7 October 2010 (UTC)&lt;br /&gt;
&lt;br /&gt;
I&#039;m just going to post my answer for question 1 on the individuel assignment and hope it helps. --[[User:Aellebla|Aellebla]] 15:06, 12 October 2010 (UTC)&lt;br /&gt;
&lt;br /&gt;
The design of the micro kernel was to take everything they could out of the Kernel and put it into a process. For ex, networking would be put into a process instead of staying in the kernel. The micro kernel dev&#039;s tried to keep lots of things in user space for efficiency. But one major problem with this is there would be a large amount of moving from a process to the kernel to user space and back again and this is a costly, non efficient process.It was an application specific OS, there was no multiplexing. With a virtual machine you are not virtualizing apps like with a microkernel but virtualizing an entire Operating System. This is very heavy however but the benefits are that it‟s easy and all the standard OS features are there whereas in a microkernel setup they would not all be there and this can be seen as a compromise.&lt;br /&gt;
&lt;br /&gt;
Exokernels can be seen as a compromise to virtual machines and microkernels because virtual machines emulate and exokernels do not. When you emulate something you hide a lot of the actual information because you wouldn‟t be able to see the „real‟ hardware. If we look at a virtual box setup running Linux, and we go look at all the hardware, it will be displayed as fake hardware.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Maybe we can have an introduction - paragraph or so on each type - then similarities - differences - and the compromise.  I am going to do some research and writing this weekend and I will put some up  -- Jslonosky&lt;br /&gt;
&lt;br /&gt;
btw in my page (i guess you can call it that) i have some resources i have found  --[[User:Asoknack|Asoknack]] 15:50, 8 October 2010 (UTC)&lt;br /&gt;
- Wow, nice man. I will go ahead and write up the descriptive paragraphs on each kernel and virtual machine if no one minds. --Jslonosky&lt;br /&gt;
&lt;br /&gt;
I think we should divide up the paragraphs and proofread each others instead. (Are there only 4 of us?) I don&#039;t have much time to work on this today though but I&#039;ll try to work on it tomorrow morning. - Slay&lt;br /&gt;
&lt;br /&gt;
Sure guy.  That sounds good.  There should be 5 or 6 of us though.. . Oh well. Their loss.  I will do some before or after work today. Ill start with Microkernel since there is not a large amount of info here, and so we don&#039;t overlap each other - JSlonosky&lt;br /&gt;
&lt;br /&gt;
yeah i think there was more like 7 of us btw if any one has any more information feel free to add it would be nice if you add the references so that way citing is really easy on  acm.org it will auto give you the citation info (where it says Display Formats click on ACM Ref  and new window with the citation info auto pop&#039;s up) --[[User:Asoknack|Asoknack]] 02:28, 11 October 2010 (UTC)&lt;br /&gt;
&lt;br /&gt;
I added an outline of the similarities and differences. Add any more that I missed. These are from observations so I don&#039;t have any resources. -Slay&lt;br /&gt;
That&#039;s probably fine.  Our textbook probably outlines some of them, so I am sure we can find a few there - JSlonosky&lt;br /&gt;
&lt;br /&gt;
Talked to the teacher today and for VM he said we should focus on the implementation such as Xen and VMware , he also said to talk about para virtualization --[[User:Asoknack|Asoknack]] 18:42, 12 October 2010 (UTC)&lt;br /&gt;
&lt;br /&gt;
A paper about emulation and paravirtualization [http://portal.acm.org/citation.cfm?id=1189289&amp;amp;coll=GUIDE&amp;amp;dl=GUIDE&amp;amp;CFID=105648137&amp;amp;CFTOKEN=47153176&amp;amp;ret=1#Fulltext link] - Slay&lt;br /&gt;
&lt;br /&gt;
Oh no big words.  Sorry about the Microkernels not done yet.  Working on an outline now.  Finally found how to access the ACM through carleton.  Gawd. &lt;br /&gt;
I am planning an outline, quick bit about kernels in general, (maybe mention monolith kernels?), and what microkernels do.&lt;br /&gt;
I see the microkernel outline info and a reference ( Whomever did that == hero: true) about the scheduling and the Memory management.  Should that be included in kernels in general and then mention what microkernels build upon/change? - JSlonosky&lt;br /&gt;
&lt;br /&gt;
Sorry late to the party here. My mistake was not checking the discussion page when I checked in. I don&#039;t want to trample anyone&#039;s current work but I don&#039;t see any work on the final essay done. I would love to help just need to know where I can step in so as to not screw anyone else up. -- [[User:Cling|Cling]]&lt;br /&gt;
&lt;br /&gt;
I don&#039;t think I&#039;ll be able to write up something for the final essay, even though I suggested splitting it. I&#039;ll do research tonight though on the paravirtualization. If I find the time, I&#039;ll try to write something. Sorry about that. --[[User:Slay|Slay]] 21:52, 13 October 2010 (UTC)&lt;br /&gt;
&lt;br /&gt;
We all have 3004 to do too, man.  I do not think anyone has chosen to do Virtual Machine section yet, or the Exokernel itself. But the contrast paragraph and the intro is chosen, and intro is done.  Microkernel and kernel will be done in a hour I hope. -- JSlonosky&lt;br /&gt;
&lt;br /&gt;
I can attempt to write up anything, the issue is I don&#039;t have any context on what to write, how do I tie it in to the rest of the essay? I only have a Japanese Quiz tomorrow morning then I should be good to write anything up for the rest of the day. As someone who has already written part of the essay, and assuming I attempt the exokernel section, how much do you think I should write? Should it just be about exokernel or should there be comparisons to the other topics? Thanks --[[User:Cling|Cling]] 23:14, 13 October 2010 (UTC)&lt;br /&gt;
&lt;br /&gt;
Go with the Exokernel itself.  Slade is getting off work in a hour and we can double check what he is doing then.  We can put it together tomorrow sometime, and fill in the other stuff. - JSLonosky&lt;br /&gt;
&lt;br /&gt;
I&#039;ll attempt to work on VM tonight, then. I would feel so bad if I didn&#039;t write anything. -Slay&lt;br /&gt;
&lt;br /&gt;
Still wondering how much to write, I think we should decide on a decent word count or length so we don&#039;t have one short section (which would probably be mine) and/or one massive section that dwarfs all the others. If anyone has already written a section could you post your word count so we can aim to be around there, it would obviously be just a recommendation but it&#039;s just better to be on the safe side and have everything uniform. I haven&#039;t seen any formal requirements for the essay but I could be wrong, I also haven&#039;t been to class in a while. --[[User:Cling|Cling]] 23:33, 13 October 2010 (UTC)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Yeah Slay, VM probably doesnt have much to write about.  Get something down, and we can go over it.  CLing, Just write what you think.  There is not a lot to go over if I write kernel/microkernel well enough.  What is a exokernel?  exokernel was an even lower-level design than the microkernel, closer to the hardware without abstraction, basically (As said by Slade). I will probably end up with 500 or a bit more words. -- JSlonosky&lt;br /&gt;
&lt;br /&gt;
Sound off!&lt;br /&gt;
&lt;br /&gt;
Who&#039;s actually reading this? Add your name to the list...&lt;br /&gt;
&lt;br /&gt;
Rovic P.&lt;br /&gt;
Jon Slonosky&lt;br /&gt;
Corey Ling&lt;br /&gt;
Steph Lay&lt;br /&gt;
&lt;br /&gt;
== The Essay ==&lt;br /&gt;
&lt;br /&gt;
Let&#039;s actually breakdown the essay into components then write it here.&lt;br /&gt;
&lt;br /&gt;
I&#039;d like to go along the premise that microkernels and and virtual machines are &amp;quot;weaker&amp;quot; than exokernels in design for the essay. If anyone has any objections, add it here. &lt;br /&gt;
&lt;br /&gt;
-Slade&lt;br /&gt;
&lt;br /&gt;
 what do you mean by &amp;quot;weaker&amp;quot;(i think you mean exokernels&#039; takes the best of both worlds ) --[[User:Asoknack|Asoknack]] 02:45, 13 October 2010 (UTC)&lt;br /&gt;
&lt;br /&gt;
What I mean by weaker is that we should focus on the things microkernels and virtual machines may not do as well compared to a system based off an exokernel design and then focus on how an exokenenel can take the best of both worlds. Please choose which section you will work on, that&#039;s not to say it&#039;ll be the only part you do, but rather we&#039;ll all contribute to each part please. 1 day left.&lt;br /&gt;
-Slade&lt;br /&gt;
&lt;br /&gt;
...to the extent that exokernels be seen as a compromise between virtual machines and microkernels. &lt;br /&gt;
-I&#039;ll work on the initial intro. -Slade&lt;br /&gt;
&lt;br /&gt;
3 paragraphs that prove it&lt;br /&gt;
Explain how the key design characteristics of these three system architectures compare with each other. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
intro/thesis statement -Rovic P.&lt;br /&gt;
&lt;br /&gt;
In Computer Science, the kernel is the component at the center of  the majority of operating systems. The kernel is a bridge for applications to access the hardware level. It is responsible for managing the system&#039;s resources such as memory, disk storage, task management and networking. It is how the kernel goes about such management and its connections that we are comparing Exokernels to Microkernels and Virtual Machines. In the Exokernel conceptual model, we can see exokernels become much smaller than microkernels since by design, they are tiny and strive to keep functionality limited to protection and multiplexing of resources. The Virtual Machine Implementation of virtualizing all devices on the system may provide compatibility, but it adds a layer of complexity within the system less efficient than a real machine as it accesses the hardware indirectly. It  can be observed how the exokernel provides low level hardware access and provide custom abstraction to those devices to improve program performance as opposed to a VM&#039;s implementation. The exokernel concept has a design that can take the better concepts of microkernels and virtual machines to the extend that exokernels can be seen as a compromise between a virtual machine and a microkernel.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Paragraph 1 -Microkernel -Jon S.&lt;br /&gt;
&lt;br /&gt;
The kernel is the most important part of an operating system.  Without the kernel, an operating system could not function.  &lt;br /&gt;
&lt;br /&gt;
A kernel is the lowest level section of an operating system.  It has the most privileges of the system.  It runs along side of the ‘user space’. It is in the ‘user space’ where a user has access and where the user can run its applications and libraries.[8]  This leaves the kernel with the need to manage the other necessary processes such as the File Systems and the process scheduling.  The kernel is layered with the most authoritative process on its lowest level.[8]  A monolithic kernel, a kernel that contains all mandatory processes within itself, was the common kernel type of the earlier versions of today’s operating systems utilized.  However, this architecture had problems. [8]  If the kernel needed to be updated with more code, or a fix for the system, the entire kernel would need to be compiled, and due to the amount of processes within it, it would take an inefficient amount of time.  This is where a microkernel becomes practical.&lt;br /&gt;
&lt;br /&gt;
The concept of a microkernel is reduce the code within the kernel, and it is only included in the kernel if it would affect the system in any way, for example for performance and efficiency reasons. [7] So, a microkernel is a kernel that has a reduced amount of mandatory software within itself.  This means that it contains less software that it has to manage, and has a reduced size.  A microkernel that emerged at the end of the 1980’s to the early 1990’s has the structure that processes like the File Systems and the Drivers are removed from it, leaving the kernel with process control and input/out control, and interrupts.  [8] This new structure makes the system much more modular, and easier to provide solutions.  If a driver must be patched or upgraded, the kernel does not need to be recompiled.  [7] The old driver can be removed, and while the device waits for the system to recognize it, the operating system replaces the driver.  This lets real-time updating, and it can be done while the computer is still functional.  This can reduce the complete crash of the system.  If a device fails, the kernel will not crash itself, like a monolithic kernel would.  The microkernel can reload the driver of the device that failed and continue functioning.  [7]  &lt;br /&gt;
&lt;br /&gt;
Want more on the scheduling?  I can do that if wanted.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Paragraph 2 -Virtual Machine -Steph L.&lt;br /&gt;
&lt;br /&gt;
A Virtual Machine, or VM, is a software abstraction of a physical machine. This entails virtualization of the physical machines resources in order to share them among OS run in the VM. Virtualizing these resources allow the OS to run as if it were on a full machine when, in reality, it is actually running in a virtualized environment on top of a hostOS, the OS actually running on the machine, sharing the resources.&lt;br /&gt;
&lt;br /&gt;
Virtual Machines generally contain two key components, the Virtual Machine Monitor, or VMM and the VM. &lt;br /&gt;
&lt;br /&gt;
The VMM, also known as the hypervisor, manages the virtualization of the physical resources and the interactions with the VM running on top. In other words, it mediates between the virtualized world and the physical world, keeping them separate and monitoring their interactions with each other. The hypervisor is what allows the VM to operate as if it were on its own machine by handling any requests to resources and maintaining these requests with what has actually been provided to the VM by the hostOS. The hostOS is provides management for the VMM as well as physical access to devices, hardware and drivers.&lt;br /&gt;
&lt;br /&gt;
The VM is what contains the OS we are running through virtualization. This OS is called the guestOS and it will only be able to access any resources that have been made available to the VM by the hostOS. Otherwise, the guestOS will not know about any other resources and does not have direct access to physical hardware. This will be taken care of by the VMM.&lt;br /&gt;
&lt;br /&gt;
[ I&#039;ll need to do some more research on the types of virtualization though before I can discuss that. If anyone has more information on them to put up in the points that would be helpful but I&#039;ll get to it right after class tomorrow morning. ]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Paragraph 3 -Exokernel -Corey L&lt;br /&gt;
&lt;br /&gt;
Paragraph 4 - Contrast/Compromise --[[User:Asoknack|Asoknack]]&lt;br /&gt;
&lt;br /&gt;
Conclusion - Jon S.   -  Only a sentence per paragraph, excluding Intro&lt;br /&gt;
&lt;br /&gt;
Sweet.  Looks like we got it covered.  We should read each others parts and put suggestions and edits. One of us should try and change it to one style if there are contradictions. And to put it on the main page.  We can figure that out tomorrow.  - Jon S&lt;br /&gt;
&lt;br /&gt;
Once the other parts are up and you see anything you know of as a good reference to back it up, put the link so we can use it. -Slade&lt;/div&gt;</summary>
		<author><name>Slay</name></author>
	</entry>
	<entry>
		<id>https://homeostasis.scs.carleton.ca/wiki/index.php?title=Talk:COMP_3000_Essay_1_2010_Question_1&amp;diff=3599</id>
		<title>Talk:COMP 3000 Essay 1 2010 Question 1</title>
		<link rel="alternate" type="text/html" href="https://homeostasis.scs.carleton.ca/wiki/index.php?title=Talk:COMP_3000_Essay_1_2010_Question_1&amp;diff=3599"/>
		<updated>2010-10-14T04:23:36Z</updated>

		<summary type="html">&lt;p&gt;Slay: /* The Essay */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Microkernel == &lt;br /&gt;
* Moving kernel functionality into processes contained in user space, e.g. file systems, drivers&lt;br /&gt;
* Keep basic functionality in kernel to handle sharing of resources&lt;br /&gt;
* Separation allows for manageability and security, corruption in one does not necessarily cause failure in system&lt;br /&gt;
* Large amount of moving from a process to Kernel to user space and back again, this is a costly operation.&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039; Microkernel &#039;&#039;&#039;&lt;br /&gt;
* try&#039;s to minimize the amount of software that is mandatory or required [7]&lt;br /&gt;
advantages of Microkernel&lt;br /&gt;
* favors a modular system structure [7]&lt;br /&gt;
* one failure of a program does not impact any other programs [7]&lt;br /&gt;
* can support more than one api or strategies since all programs are separated [7]&lt;br /&gt;
==== Microkernel Concepts ==== &lt;br /&gt;
* piece of code is allowed in the kernel only if moving it outside the kernel would adversely affect the system. [7]&lt;br /&gt;
* any subsystem program created must be independent of all other subsystem&#039;s, any subsystem that is used can guarantee this from all other subsystems [7]&lt;br /&gt;
===== Address Space =====&lt;br /&gt;
* a mapping that relates the physical page to the virtual page. [7]&lt;br /&gt;
* processor specific [7]&lt;br /&gt;
* hide&#039;s the hardware&#039;s concept of address space [7]&lt;br /&gt;
* based off the idea of recursion each subsystem has it&#039;s own address space [7]&lt;br /&gt;
* the micro kernel provides 3 operations [7]&lt;br /&gt;
** Grant [7]&lt;br /&gt;
*** allows the owner to give a page to a recipient, provided the recipient want&#039;s it the page is removed from the owner&#039;s address space and but in the recipients. [7]&lt;br /&gt;
*** must be available to the owner. [7]&lt;br /&gt;
** Map [7]&lt;br /&gt;
*** allows the user to share a page with a recipient [7]&lt;br /&gt;
*** page is not removed from the owner&#039;s address space. [7]&lt;br /&gt;
** Flush [7]&lt;br /&gt;
*** remove&#039;s the page from all recipients address space [7]&lt;br /&gt;
*** how does this work with Grant --[[User:Asoknack|Asoknack]] 19:10, 12 October 2010 (UTC)&lt;br /&gt;
* allows memory management and paging out side the kernel&lt;br /&gt;
* Map and flush is required for memory manger&#039;s and pagers [7]&lt;br /&gt;
* can be used to implement access right&#039;s [7]&lt;br /&gt;
* controlling I/O Right&#039;s and driver&#039;s are not done at kernel level [7]&lt;br /&gt;
&lt;br /&gt;
===== Thread&#039;s IPC =====&lt;br /&gt;
* Threads&lt;br /&gt;
** in the kernel [7]&lt;br /&gt;
** Since a thread has an address space , all changes to the thread need to be done by the kernel [7]&lt;br /&gt;
* IPC [7]&lt;br /&gt;
** in the kernel IPC&lt;br /&gt;
** grant and map also need IPC  (So buye the priciple above this has to be in the kernel)[7]&lt;br /&gt;
** basic way for sub process to communicate. [7]&lt;br /&gt;
* Interrupts&lt;br /&gt;
** partially in the kernel [7]&lt;br /&gt;
** hard ware is a set of thread&#039;s which are empty except for there unique sender id [7]&lt;br /&gt;
** transformation of the message to the interrupt is done in the kernel [7]&lt;br /&gt;
** the kernel is not involved in device - specific interrupt&#039;s and does not understand the interrupt. [7]&lt;br /&gt;
*** resting the interrupt is done at user level [7]&lt;br /&gt;
** if a privileged command is need it is done implicitly the next time an IPC command is sent from the device [7]&lt;br /&gt;
&lt;br /&gt;
===== Unique Identifiers =====&lt;br /&gt;
&lt;br /&gt;
== Virtual Machine ==&lt;br /&gt;
* Partitioning or virtualizing resources among OS virtualization running on top of host OS&lt;br /&gt;
* Virtualized OS believe running on full machine on its own&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
System Level Virtualization&lt;br /&gt;
&lt;br /&gt;
=== VMM ===&lt;br /&gt;
* stands for Virtual Machine Monitor, also known as the hyper-visor[4]&lt;br /&gt;
* responsible for virtualization of hardware(mapping physical to virtual) and the VM that run on top of the virtuallized hardware [4]&lt;br /&gt;
* usually a small os with no drivers , so it is coupled with a linux distro that provides device / hardware access [4]&lt;br /&gt;
** the os that the VMM is using for driver&#039;s is called the hostOS [6]&lt;br /&gt;
*the hostOS provides login and physical access to the hardware as well as management for the VMM [6]&lt;br /&gt;
=== VM ===&lt;br /&gt;
* the OS that the vm is running is called the guestOS [6]&lt;br /&gt;
* the guestOS only sees resources that have been allocated to the VM [6]&lt;br /&gt;
==== three approaches ====&lt;br /&gt;
*Type I virtualization [5]&lt;br /&gt;
** runs off the physical hardware [4]&lt;br /&gt;
** Isolation of the guestOs from the hardware is done threw processe level protection meachnism[6]&lt;br /&gt;
*** ring 0 = VMM [6]&lt;br /&gt;
*** ring 1 = VM [6]&lt;br /&gt;
*** this means all instructions from the VM must go threw the VMM [6]&lt;br /&gt;
** since there can be multiple VM&#039;s on a computer the scheduling is done by the VMM [6]&lt;br /&gt;
** on boot the VMM creates a hardware platform for the VM [6]&lt;br /&gt;
** load&#039;s the VM kernel into virtual memory and then boot&#039;s it like a regular computer [6]&lt;br /&gt;
** ex. Xen [4]&lt;br /&gt;
*Type II virtualization [5]&lt;br /&gt;
** run off the host Os [4]&lt;br /&gt;
** ex. VMware , QEMU [4]&lt;br /&gt;
* Para-virtualization [6]&lt;br /&gt;
** Similar to Type but use the HostOs for Device driver access [6]&lt;br /&gt;
** Provide a virtualization that is similar to hardware [From the paper posted, no citation yet]&lt;br /&gt;
** GuestOS and Hypervisor work together to improve performance&lt;br /&gt;
&lt;br /&gt;
== Exokernel ==&lt;br /&gt;
* Micro-kernel architecture with limited abstractions, ask for resource, get resource not resource abstraction&lt;br /&gt;
* Less functionality provided by kernel, security and handling of resource sharing&lt;br /&gt;
* Once application receives resource, it can use it as it wishes/in control&lt;br /&gt;
* Keep the basic kernel to handle allocating resources and sharing rather than developing straight to the hardware&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
* multiplex resources securely providing protection to mutual distrustful application threw the use of secure binding&#039;s[1]&lt;br /&gt;
* Goal of the exokernel is to give LibOS maximum freedom with out allowing them to interfere with each other. to do this the exokernel separates protection from management in doing this it provide 3 important tasks[1]&lt;br /&gt;
** tracking ownership of resources [1]&lt;br /&gt;
** ensuring protection by guarding all resource usage and binding points (not to shure what binding points are)[1]&lt;br /&gt;
** revoking access to the resources [1]&lt;br /&gt;
* LibrayOS (LibOs)&lt;br /&gt;
** Reduces the number of kernel crossings[1]&lt;br /&gt;
** Not trusted by the exokernel so can be trusted by the application , Example given is a bad parameter passed to the LibOs only the application is affected.[1] (So LibOs cant interact with kernel ???)&lt;br /&gt;
** Any application running on the Exokernel can change the LibrayOs freely [1]&lt;br /&gt;
** Application that use LibOS that implement standard interfaces (POSIX) will be portable on any system with the same interface [1]&lt;br /&gt;
** LibOs can be made portable if it is designed to interact with a low-level machine independent level to hide hardware details [1]&lt;br /&gt;
&lt;br /&gt;
=== Exokernel Design ===&lt;br /&gt;
==== Design Principles ====&lt;br /&gt;
*Securely Expose Hardware [1]&lt;br /&gt;
** an Exokernel tries to create low level primitives that the hardware resources can be accessed from, this also includes interrupts,exceptions [1]&lt;br /&gt;
** the exokernel also export privileged instructions to the LibOS so that traditional OS abstractions can be implemented (eg Process , address pace)[1]&lt;br /&gt;
** Exokernels should avoid resource management except when required protection ( allocation , revocation , ownership)[1]&lt;br /&gt;
** application based resource management is the best way to build flexible efficient flexible systems [1]&lt;br /&gt;
*Expose allocation[1]&lt;br /&gt;
** allow LibOs to request physical resources [1]&lt;br /&gt;
** resource allocation should not be automatic, the LibOS should participate in every single allocation decision [1]&lt;br /&gt;
*Expose Names[1]&lt;br /&gt;
** Use physical name&#039;s when ever possible[3] (not to sure what physical names are, I think it is as simple as what the hardware is called)--[[User:Asoknack|Asoknack]] 20:27, 9 October 2010 (UTC)&lt;br /&gt;
** Physical names capture useful information [3]&lt;br /&gt;
*** safer than and less resource intensive than virtual names as no translations are needed[3]&lt;br /&gt;
*Expose Revocation [1]&lt;br /&gt;
** use visible revocation protocol [1]&lt;br /&gt;
** allows well behaved LibOS to preform application level resource management [1]&lt;br /&gt;
** Visible revocation allows the LibOS to choose what instance of the resource to release[1](Visible means that when revocation happens the exokernel tell the LibOS that resource is being revoked)&lt;br /&gt;
&#039;&#039;&#039; Policy &#039;&#039;&#039;&lt;br /&gt;
* LibOS handle resource policy decisions&lt;br /&gt;
* Exokernels have a policy to decided between competing LibOS (Priority , share of resources)&lt;br /&gt;
** it enforces this threw allocation and deallocation (every thing can achieved threw this even what block to write and such)&lt;br /&gt;
&lt;br /&gt;
==== Secure Bindings ====&lt;br /&gt;
* Used by the exokernel to allow the LibOS to bind to resources [1]&lt;br /&gt;
* Allows the separation of protection and resource use [1]&lt;br /&gt;
* only checks authorization during bind time [1]&lt;br /&gt;
** Application&#039;s with complex needs for resources only authorized during bind.[1]&lt;br /&gt;
* access checking is done during access time and there is no need to understand complex resources needs during access[1]&lt;br /&gt;
** (this means that the exokernel checks once to make sure an application has authorization once approved, when the application tries to use the resource the exokernel is only concerned about policy conflict&#039;s)--[[User:Asoknack|Asoknack]] 18:20, 9 October 2010 (UTC)&lt;br /&gt;
** allows the kernel to protect the resources with out understanding what the resource is [1]&lt;br /&gt;
*three way&#039;s to implement&lt;br /&gt;
* Hardware Mechanisms [1]&lt;br /&gt;
* Software caching [1]&lt;br /&gt;
* Downloading application code [1]&lt;br /&gt;
&#039;&#039;&#039; Downloading Code to the Kernel &#039;&#039;&#039;&lt;br /&gt;
* used to implement secure bindings , and improve performance[1]&lt;br /&gt;
** eliminate the number of kernel crossings [1]&lt;br /&gt;
** downloaded code can be run with out the application to be scheduled [2]&lt;br /&gt;
==== Visible Resource Revocation ====&lt;br /&gt;
* Used for most resources [1]&lt;br /&gt;
** allows for LibOS to help with deallocation [1]&lt;br /&gt;
** LibOS are able to garner what resources are scare [1]&lt;br /&gt;
* Slower than Invisible as application involvement is required [1]&lt;br /&gt;
** ex of when invisible is used is Processor addressing-context identifiers [1]&lt;br /&gt;
==== Abort Protocol ====&lt;br /&gt;
* allows the exokernel to take resources away from the LibOS [1]&lt;br /&gt;
* used when the LibOS fails to respond to the revocation request [1]&lt;br /&gt;
* Exokernel must be careful not to delete as the LibOS might need to write some system critical data to the resource [1]&lt;br /&gt;
&lt;br /&gt;
== Comparisons  ==&lt;br /&gt;
====Exokernel/Microkernel====&lt;br /&gt;
&#039;&#039;&#039;Similarities&#039;&#039;&#039;&lt;br /&gt;
* Limited functionality in kernel&lt;br /&gt;
** functionality in kernel to handle sharing of resources and security&lt;br /&gt;
** avoids programming directly to hardware which creates a dependency&lt;br /&gt;
* Additional functionality provided in user space as processes&lt;br /&gt;
&#039;&#039;&#039;Differences&#039;&#039;&#039;&lt;br /&gt;
* Minimal abstractions provided by the kernel&lt;br /&gt;
** Applications given more power in exokernel&lt;br /&gt;
&lt;br /&gt;
====Exokernel/VM====&lt;br /&gt;
&#039;&#039;&#039;Similarities&#039;&#039;&#039;&lt;br /&gt;
* Idea of partitioning resources between applications/OSs&lt;br /&gt;
* &amp;quot;Control&amp;quot; of resource given&lt;br /&gt;
* Isolation from other applications/OSs&lt;br /&gt;
&#039;&#039;&#039;Differences&#039;&#039;&#039;&lt;br /&gt;
* Exokernel runs applications, VM runs OS&lt;br /&gt;
* VM uses a hostOS and guestOSs run on top&lt;br /&gt;
* Virtualization on VMs, Exokernel deals with real resources&lt;br /&gt;
* VM hides a lot of information because it emulates. Exokernel does not.&lt;br /&gt;
&lt;br /&gt;
====Microkernel/VM====&lt;br /&gt;
&#039;&#039;&#039;Differences&#039;&#039;&#039;&lt;br /&gt;
* With a virtual machine, you are not virtualizing apps like with a microkernel but virtualizing an entire Operating System.&lt;br /&gt;
* This can be costly but the benefits are that it&#039;s easier and all the standard OS features are available.&lt;br /&gt;
&lt;br /&gt;
== References ==&lt;br /&gt;
[1]&amp;lt;nowiki&amp;gt; Engler, D. R., Kaashoek, M. F., and O&#039;Toole, J. 1995. Exokernel: an operating system architecture for application-level resource management. In Proceedings of the Fifteenth ACM Symposium on Operating Systems Principles  (Copper Mountain, Colorado, United States, December 03 - 06, 1995). M. B. Jones, Ed. SOSP &#039;95. ACM, New York, NY, 251-266. DOI= http://doi.acm.org/10.1145/224056.224076 &amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[2]&amp;lt;nowiki&amp;gt;Engler, Dawson R. &amp;quot;The Exokernel Operating System Architecture.&amp;quot; Diss. Massachusetts Institute of Technology, Dept. of Electrical Engineering and Computer Science, 1998. Web. 9 Oct. 2010. &amp;lt;http://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.61.5054&amp;amp;rep=rep1&amp;amp;type=pdf&amp;gt;.&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[3]&amp;lt;nowiki&amp;gt;Kaashoek, M. F., Engler, D. R., Ganger, G. R., Briceño, H. M., Hunt, R., Mazières, D., Pinckney, T., Grimm, R., Jannotti, J., and Mackenzie, K. 1997. Application performance and flexibility on exokernel systems. In Proceedings of the Sixteenth ACM Symposium on Operating Systems Principles  (Saint Malo, France, October 05 - 08, 1997). W. M. Waite, Ed. SOSP &#039;97. ACM, New York, NY, 52-65. DOI= http://doi.acm.org/10.1145/268998.266644 &amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[4]&amp;lt;nowiki&amp;gt;Vallee, G.; Naughton, T.; Engelmann, C.; Hong Ong; Scott, S.L.; , &amp;quot;System-Level Virtualization for High Performance Computing,&amp;quot; Parallel, Distributed and Network-Based Processing, 2008. PDP 2008. 16th Euromicro Conference on , vol., no., pp.636-643, 13-15 Feb. 2008&lt;br /&gt;
DOI= http://doi.acm.org/10.1109/PDP.2008.85 &amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[5]&amp;lt;nowiki&amp;gt;Goldberg, R. P. 1973. Architecture of virtual machines. In Proceedings of the Workshop on Virtual Computer Systems  (Cambridge, Massachusetts, United States, March 26 - 27, 1973). ACM, New York, NY, 74-112. DOI= http://doi.acm.org/10.1145/800122.803950 &amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[6]&amp;lt;nowiki&amp;gt;Vallee, G., Naughton, T., and Scott, S. L. 2007. System management software for virtual environments. In Proceedings of the 4th international Conference on Computing Frontiers (Ischia, Italy, May 07 - 09, 2007). CF &#039;07. ACM, New York, NY, 153-160. DOI= http://doi.acm.org/10.1145/1242531.1242555 &amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[7]&amp;lt;nowiki&amp;gt;Liedtke, J. 1995. On micro-kernel construction. In Proceedings of the Fifteenth ACM Symposium on Operating Systems Principles  (Copper Mountain, Colorado, United States, December 03 - 06, 1995). M. B. Jones, Ed. SOSP &#039;95. ACM, New York, NY, 237-250. DOI= http://doi.acm.org/10.1145/224056.224075 &amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[8]&amp;lt;nowiki&amp;gt;Microkernel verses monolithic kernel&lt;br /&gt;
http://www.vmars.tuwien.ac.at/courses/akti12/journal/04ss/article_04ss_Roch.pdf  - Roch&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
I will site it/reference it better later&lt;br /&gt;
&lt;br /&gt;
== Unsorted ==&lt;br /&gt;
An overview of exokernels,virtual machines, microkernels *[http://www2.supchurch.org:10999/files/school/classes/CSCI4730/Lectures/grad-structures.ppt Overview](Power Point)&amp;lt;br&amp;gt;&lt;br /&gt;
Should not be used as a source but an overview.&lt;br /&gt;
&lt;br /&gt;
The original paper on [http://portal.acm.org/citation.cfm?id=224076 Exokernels] --[[User:Gautam|Gautam]] 22:39, 6 October 2010 (UTC)&lt;br /&gt;
&lt;br /&gt;
Exokernel-&lt;br /&gt;
Minimalistic abstractions for developers&lt;br /&gt;
Exokernels can be seen as a good compromise between virtual machines and microkernels in the sense that exokernels can give that low level access to developers similar to direct access through a protected layer and at the same time can contain enough hardware abstraction to allow similar benefit of hiding the hardware resources to application programs.&lt;br /&gt;
Exokernel – fewest hardware abstractions to developer&lt;br /&gt;
Microkernel - is the near-minimum amount of software that can provide the mechanisms needed to implement an operating system&lt;br /&gt;
Virtual machine is a simulation of any or devices requested by an application program&lt;br /&gt;
Exokenel – I’ve got a sound card&lt;br /&gt;
Virtual Machine – I’ve got the sound card you’re looking for, perfect virtual match&lt;br /&gt;
Microkernel – I’ve got sound card that plays Khazikstan sound format only&lt;br /&gt;
MicroKernel - Very small, very predictable, good for schedualing (QNX is a microkernel - POSIX compatable, benefits of running linux software like modern browsers) &lt;br /&gt;
&lt;br /&gt;
This is some ideas I&#039;ve got on this question, please contribute below&lt;br /&gt;
-Rovic&lt;br /&gt;
&lt;br /&gt;
Outlining some main features here as I see them.&lt;br /&gt;
&lt;br /&gt;
I found that the exokernel was an even lower-level design than the microkernel, closer to the hardware without abstraction. They have the same architecture with the basic functionality contained in the kernel to manage everyone. As the exokernel &amp;quot;gives&amp;quot; the resource to the application it can use the resource in isolation of other applications (until forced to shared) much like VMs receive their resources, either partitioned or virtualized, and execute as if its running on its own machine. There is this similar notion of partitioning the resources among applications/OS and allowing them to take control of what they have. &lt;br /&gt;
&lt;br /&gt;
I&#039;ll locate some references later on. --[[User:Slay|Slay]] 15:00, 7 October 2010 (UTC)&lt;br /&gt;
&lt;br /&gt;
I&#039;m just going to post my answer for question 1 on the individuel assignment and hope it helps. --[[User:Aellebla|Aellebla]] 15:06, 12 October 2010 (UTC)&lt;br /&gt;
&lt;br /&gt;
The design of the micro kernel was to take everything they could out of the Kernel and put it into a process. For ex, networking would be put into a process instead of staying in the kernel. The micro kernel dev&#039;s tried to keep lots of things in user space for efficiency. But one major problem with this is there would be a large amount of moving from a process to the kernel to user space and back again and this is a costly, non efficient process.It was an application specific OS, there was no multiplexing. With a virtual machine you are not virtualizing apps like with a microkernel but virtualizing an entire Operating System. This is very heavy however but the benefits are that it‟s easy and all the standard OS features are there whereas in a microkernel setup they would not all be there and this can be seen as a compromise.&lt;br /&gt;
&lt;br /&gt;
Exokernels can be seen as a compromise to virtual machines and microkernels because virtual machines emulate and exokernels do not. When you emulate something you hide a lot of the actual information because you wouldn‟t be able to see the „real‟ hardware. If we look at a virtual box setup running Linux, and we go look at all the hardware, it will be displayed as fake hardware.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Maybe we can have an introduction - paragraph or so on each type - then similarities - differences - and the compromise.  I am going to do some research and writing this weekend and I will put some up  -- Jslonosky&lt;br /&gt;
&lt;br /&gt;
btw in my page (i guess you can call it that) i have some resources i have found  --[[User:Asoknack|Asoknack]] 15:50, 8 October 2010 (UTC)&lt;br /&gt;
- Wow, nice man. I will go ahead and write up the descriptive paragraphs on each kernel and virtual machine if no one minds. --Jslonosky&lt;br /&gt;
&lt;br /&gt;
I think we should divide up the paragraphs and proofread each others instead. (Are there only 4 of us?) I don&#039;t have much time to work on this today though but I&#039;ll try to work on it tomorrow morning. - Slay&lt;br /&gt;
&lt;br /&gt;
Sure guy.  That sounds good.  There should be 5 or 6 of us though.. . Oh well. Their loss.  I will do some before or after work today. Ill start with Microkernel since there is not a large amount of info here, and so we don&#039;t overlap each other - JSlonosky&lt;br /&gt;
&lt;br /&gt;
yeah i think there was more like 7 of us btw if any one has any more information feel free to add it would be nice if you add the references so that way citing is really easy on  acm.org it will auto give you the citation info (where it says Display Formats click on ACM Ref  and new window with the citation info auto pop&#039;s up) --[[User:Asoknack|Asoknack]] 02:28, 11 October 2010 (UTC)&lt;br /&gt;
&lt;br /&gt;
I added an outline of the similarities and differences. Add any more that I missed. These are from observations so I don&#039;t have any resources. -Slay&lt;br /&gt;
That&#039;s probably fine.  Our textbook probably outlines some of them, so I am sure we can find a few there - JSlonosky&lt;br /&gt;
&lt;br /&gt;
Talked to the teacher today and for VM he said we should focus on the implementation such as Xen and VMware , he also said to talk about para virtualization --[[User:Asoknack|Asoknack]] 18:42, 12 October 2010 (UTC)&lt;br /&gt;
&lt;br /&gt;
A paper about emulation and paravirtualization [http://portal.acm.org/citation.cfm?id=1189289&amp;amp;coll=GUIDE&amp;amp;dl=GUIDE&amp;amp;CFID=105648137&amp;amp;CFTOKEN=47153176&amp;amp;ret=1#Fulltext link] - Slay&lt;br /&gt;
&lt;br /&gt;
Oh no big words.  Sorry about the Microkernels not done yet.  Working on an outline now.  Finally found how to access the ACM through carleton.  Gawd. &lt;br /&gt;
I am planning an outline, quick bit about kernels in general, (maybe mention monolith kernels?), and what microkernels do.&lt;br /&gt;
I see the microkernel outline info and a reference ( Whomever did that == hero: true) about the scheduling and the Memory management.  Should that be included in kernels in general and then mention what microkernels build upon/change? - JSlonosky&lt;br /&gt;
&lt;br /&gt;
Sorry late to the party here. My mistake was not checking the discussion page when I checked in. I don&#039;t want to trample anyone&#039;s current work but I don&#039;t see any work on the final essay done. I would love to help just need to know where I can step in so as to not screw anyone else up. -- [[User:Cling|Cling]]&lt;br /&gt;
&lt;br /&gt;
I don&#039;t think I&#039;ll be able to write up something for the final essay, even though I suggested splitting it. I&#039;ll do research tonight though on the paravirtualization. If I find the time, I&#039;ll try to write something. Sorry about that. --[[User:Slay|Slay]] 21:52, 13 October 2010 (UTC)&lt;br /&gt;
&lt;br /&gt;
We all have 3004 to do too, man.  I do not think anyone has chosen to do Virtual Machine section yet, or the Exokernel itself. But the contrast paragraph and the intro is chosen, and intro is done.  Microkernel and kernel will be done in a hour I hope. -- JSlonosky&lt;br /&gt;
&lt;br /&gt;
I can attempt to write up anything, the issue is I don&#039;t have any context on what to write, how do I tie it in to the rest of the essay? I only have a Japanese Quiz tomorrow morning then I should be good to write anything up for the rest of the day. As someone who has already written part of the essay, and assuming I attempt the exokernel section, how much do you think I should write? Should it just be about exokernel or should there be comparisons to the other topics? Thanks --[[User:Cling|Cling]] 23:14, 13 October 2010 (UTC)&lt;br /&gt;
&lt;br /&gt;
Go with the Exokernel itself.  Slade is getting off work in a hour and we can double check what he is doing then.  We can put it together tomorrow sometime, and fill in the other stuff. - JSLonosky&lt;br /&gt;
&lt;br /&gt;
I&#039;ll attempt to work on VM tonight, then. I would feel so bad if I didn&#039;t write anything. -Slay&lt;br /&gt;
&lt;br /&gt;
Still wondering how much to write, I think we should decide on a decent word count or length so we don&#039;t have one short section (which would probably be mine) and/or one massive section that dwarfs all the others. If anyone has already written a section could you post your word count so we can aim to be around there, it would obviously be just a recommendation but it&#039;s just better to be on the safe side and have everything uniform. I haven&#039;t seen any formal requirements for the essay but I could be wrong, I also haven&#039;t been to class in a while. --[[User:Cling|Cling]] 23:33, 13 October 2010 (UTC)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Yeah Slay, VM probably doesnt have much to write about.  Get something down, and we can go over it.  CLing, Just write what you think.  There is not a lot to go over if I write kernel/microkernel well enough.  What is a exokernel?  exokernel was an even lower-level design than the microkernel, closer to the hardware without abstraction, basically (As said by Slade). I will probably end up with 500 or a bit more words. -- JSlonosky&lt;br /&gt;
&lt;br /&gt;
Sound off!&lt;br /&gt;
&lt;br /&gt;
Who&#039;s actually reading this? Add your name to the list...&lt;br /&gt;
&lt;br /&gt;
Rovic P.&lt;br /&gt;
Jon Slonosky&lt;br /&gt;
Corey Ling&lt;br /&gt;
Steph Lay&lt;br /&gt;
&lt;br /&gt;
== The Essay ==&lt;br /&gt;
&lt;br /&gt;
Let&#039;s actually breakdown the essay into components then write it here.&lt;br /&gt;
&lt;br /&gt;
I&#039;d like to go along the premise that microkernels and and virtual machines are &amp;quot;weaker&amp;quot; than exokernels in design for the essay. If anyone has any objections, add it here. &lt;br /&gt;
&lt;br /&gt;
-Slade&lt;br /&gt;
&lt;br /&gt;
 what do you mean by &amp;quot;weaker&amp;quot;(i think you mean exokernels&#039; takes the best of both worlds ) --[[User:Asoknack|Asoknack]] 02:45, 13 October 2010 (UTC)&lt;br /&gt;
&lt;br /&gt;
What I mean by weaker is that we should focus on the things microkernels and virtual machines may not do as well compared to a system based off an exokernel design and then focus on how an exokenenel can take the best of both worlds. Please choose which section you will work on, that&#039;s not to say it&#039;ll be the only part you do, but rather we&#039;ll all contribute to each part please. 1 day left.&lt;br /&gt;
-Slade&lt;br /&gt;
&lt;br /&gt;
...to the extent that exokernels be seen as a compromise between virtual machines and microkernels. &lt;br /&gt;
-I&#039;ll work on the initial intro. -Slade&lt;br /&gt;
&lt;br /&gt;
3 paragraphs that prove it&lt;br /&gt;
Explain how the key design characteristics of these three system architectures compare with each other. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
intro/thesis statement -Rovic P.&lt;br /&gt;
&lt;br /&gt;
In Computer Science, the kernel is the component at the center of  the majority of operating systems. The kernel is a bridge for applications to access the hardware level. It is responsible for managing the system&#039;s resources such as memory, disk storage, task management and networking. It is how the kernel goes about such management and its connections that we are comparing Exokernels to Microkernels and Virtual Machines. In the Exokernel conceptual model, we can see exokernels become much smaller than microkernels since by design, they are tiny and strive to keep functionality limited to protection and multiplexing of resources. The Virtual Machine Implementation of virtualizing all devices on the system may provide compatibility, but it adds a layer of complexity within the system less efficient than a real machine as it accesses the hardware indirectly. It  can be observed how the exokernel provides low level hardware access and provide custom abstraction to those devices to improve program performance as opposed to a VM&#039;s implementation. The exokernel concept has a design that can take the better concepts of microkernels and virtual machines to the extend that exokernels can be seen as a compromise between a virtual machine and a microkernel.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Paragraph 1 -Microkernel -Jon S.&lt;br /&gt;
&lt;br /&gt;
The kernel is the most important part of an operating system.  Without the kernel, an operating system could not function.  &lt;br /&gt;
&lt;br /&gt;
A kernel is the lowest level section of an operating system.  It has the most privileges of the system.  It runs along side of the ‘user space’. It is in the ‘user space’ where a user has access and where the user can run its applications and libraries.[8]  This leaves the kernel with the need to manage the other necessary processes such as the File Systems and the process scheduling.  The kernel is layered with the most authoritative process on its lowest level.[8]  A monolithic kernel, a kernel that contains all mandatory processes within itself, was the common kernel type of the earlier versions of today’s operating systems utilized.  However, this architecture had problems. [8]  If the kernel needed to be updated with more code, or a fix for the system, the entire kernel would need to be compiled, and due to the amount of processes within it, it would take an inefficient amount of time.  This is where a microkernel becomes practical.&lt;br /&gt;
&lt;br /&gt;
The concept of a microkernel is reduce the code within the kernel, and it is only included in the kernel if it would affect the system in any way, for example for performance and efficiency reasons. [7] So, a microkernel is a kernel that has a reduced amount of mandatory software within itself.  This means that it contains less software that it has to manage, and has a reduced size.  A microkernel that emerged at the end of the 1980’s to the early 1990’s has the structure that processes like the File Systems and the Drivers are removed from it, leaving the kernel with process control and input/out control, and interrupts.  [8] This new structure makes the system much more modular, and easier to provide solutions.  If a driver must be patched or upgraded, the kernel does not need to be recompiled.  [7] The old driver can be removed, and while the device waits for the system to recognize it, the operating system replaces the driver.  This lets real-time updating, and it can be done while the computer is still functional.  This can reduce the complete crash of the system.  If a device fails, the kernel will not crash itself, like a monolithic kernel would.  The microkernel can reload the driver of the device that failed and continue functioning.  [7]  &lt;br /&gt;
&lt;br /&gt;
Want more on the scheduling?  I can do that if wanted.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Paragraph 2 -Virtual Machine -Steph L.&lt;br /&gt;
&lt;br /&gt;
A Virtual Machine, or VM, is a software abstraction of a physical machine. This entails virtualization of the physical machines resources in order to share them among operating systems, or OS, run in the VM. Virtualizing these resources allow the OS to run as if it were on a full machine when, in reality, it is actually running in a virtualized environment on top of a hostOS, the OS actually running on the machine, sharing the resources.&lt;br /&gt;
&lt;br /&gt;
Virtual Machines generally contain two key components, the Virtual Machine Monitor, or VMM and the VM. &lt;br /&gt;
&lt;br /&gt;
The VMM, also known as the hypervisor, manages the virtualization of the physical resources and the interactions with the VM running on top. In other words, it mediates between the virtualized world and the physical world, keeping them separate and monitoring their interactions with each other. The hypervisor is what allows the VM to operate as if it were on its own machine by handling any requests to resources and maintaining these requests with what has actually been provided to the VM by the hostOS. The hostOS is provides management for the VMM as well as physical access to devices, hardware and drivers.&lt;br /&gt;
&lt;br /&gt;
The VM is what contains the OS we are running through virtualization. This OS is called the guestOS and it will only be able to access any resources that have been made available to the VM by the hostOS. Otherwise, the guestOS will not know about any other resources and does not have direct access to physical hardware. This will be taken care of by the VMM.&lt;br /&gt;
&lt;br /&gt;
[ I&#039;ll need to do some more research on the types of virtualization though before I can discuss that. If anyone has more information on them to put up in the points that would be helpful but I&#039;ll get to it right after class tomorrow morning. ]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Paragraph 3 -Exokernel -Corey L&lt;br /&gt;
&lt;br /&gt;
Paragraph 4 - Contrast/Compromise --[[User:Asoknack|Asoknack]]&lt;br /&gt;
&lt;br /&gt;
Conclusion - Jon S.   -  Only a sentence per paragraph, excluding Intro&lt;br /&gt;
&lt;br /&gt;
Sweet.  Looks like we got it covered.  We should read each others parts and put suggestions and edits. One of us should try and change it to one style if there are contradictions. And to put it on the main page.  We can figure that out tomorrow.  - Jon S&lt;br /&gt;
&lt;br /&gt;
Once the other parts are up and you see anything you know of as a good reference to back it up, put the link so we can use it. -Slade&lt;/div&gt;</summary>
		<author><name>Slay</name></author>
	</entry>
	<entry>
		<id>https://homeostasis.scs.carleton.ca/wiki/index.php?title=Talk:COMP_3000_Essay_1_2010_Question_1&amp;diff=3519</id>
		<title>Talk:COMP 3000 Essay 1 2010 Question 1</title>
		<link rel="alternate" type="text/html" href="https://homeostasis.scs.carleton.ca/wiki/index.php?title=Talk:COMP_3000_Essay_1_2010_Question_1&amp;diff=3519"/>
		<updated>2010-10-14T01:44:33Z</updated>

		<summary type="html">&lt;p&gt;Slay: /* The Essay */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Microkernel == &lt;br /&gt;
* Moving kernel functionality into processes contained in user space, e.g. file systems, drivers&lt;br /&gt;
* Keep basic functionality in kernel to handle sharing of resources&lt;br /&gt;
* Separation allows for manageability and security, corruption in one does not necessarily cause failure in system&lt;br /&gt;
* Large amount of moving from a process to Kernel to user space and back again, this is a costly operation.&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039; Microkernel &#039;&#039;&#039;&lt;br /&gt;
* try&#039;s to minimize the amount of software that is mandatory or required [7]&lt;br /&gt;
advantages of Microkernel&lt;br /&gt;
* favors a modular system structure [7]&lt;br /&gt;
* one failure of a program does not impact any other programs [7]&lt;br /&gt;
* can support more than one api or strategies since all programs are separated [7]&lt;br /&gt;
==== Microkernel Concepts ==== &lt;br /&gt;
* piece of code is allowed in the kernel only if moving it outside the kernel would adversely affect the system. [7]&lt;br /&gt;
* any subsystem program created must be independent of all other subsystem&#039;s, any subsystem that is used can guarantee this from all other subsystems [7]&lt;br /&gt;
===== Address Space =====&lt;br /&gt;
* a mapping that relates the physical page to the virtual page. [7]&lt;br /&gt;
* processor specific [7]&lt;br /&gt;
* hide&#039;s the hardware&#039;s concept of address space [7]&lt;br /&gt;
* based off the idea of recursion each subsystem has it&#039;s own address space [7]&lt;br /&gt;
* the micro kernel provides 3 operations [7]&lt;br /&gt;
** Grant [7]&lt;br /&gt;
*** allows the owner to give a page to a recipient, provided the recipient want&#039;s it the page is removed from the owner&#039;s address space and but in the recipients. [7]&lt;br /&gt;
*** must be available to the owner. [7]&lt;br /&gt;
** Map [7]&lt;br /&gt;
*** allows the user to share a page with a recipient [7]&lt;br /&gt;
*** page is not removed from the owner&#039;s address space. [7]&lt;br /&gt;
** Flush [7]&lt;br /&gt;
*** remove&#039;s the page from all recipients address space [7]&lt;br /&gt;
*** how does this work with Grant --[[User:Asoknack|Asoknack]] 19:10, 12 October 2010 (UTC)&lt;br /&gt;
* allows memory management and paging out side the kernel&lt;br /&gt;
* Map and flush is required for memory manger&#039;s and pagers [7]&lt;br /&gt;
* can be used to implement access right&#039;s [7]&lt;br /&gt;
* controlling I/O Right&#039;s and driver&#039;s are not done at kernel level [7]&lt;br /&gt;
&lt;br /&gt;
===== Thread&#039;s IPC =====&lt;br /&gt;
* Threads&lt;br /&gt;
** in the kernel [7]&lt;br /&gt;
** Since a thread has an address space , all changes to the thread need to be done by the kernel [7]&lt;br /&gt;
* IPC [7]&lt;br /&gt;
** in the kernel IPC&lt;br /&gt;
** grant and map also need IPC  (So buye the priciple above this has to be in the kernel)[7]&lt;br /&gt;
** basic way for sub process to communicate. [7]&lt;br /&gt;
* Interrupts&lt;br /&gt;
** partially in the kernel [7]&lt;br /&gt;
** hard ware is a set of thread&#039;s which are empty except for there unique sender id [7]&lt;br /&gt;
** transformation of the message to the interrupt is done in the kernel [7]&lt;br /&gt;
** the kernel is not involved in device - specific interrupt&#039;s and does not understand the interrupt. [7]&lt;br /&gt;
*** resting the interrupt is done at user level [7]&lt;br /&gt;
** if a privileged command is need it is done implicitly the next time an IPC command is sent from the device [7]&lt;br /&gt;
&lt;br /&gt;
===== Unique Identifiers =====&lt;br /&gt;
&lt;br /&gt;
== Virtual Machine ==&lt;br /&gt;
* Partitioning or virtualizing resources among OS virtualization running on top of host OS&lt;br /&gt;
* Virtualized OS believe running on full machine on its own&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
System Level Virtualization&lt;br /&gt;
&lt;br /&gt;
=== VMM ===&lt;br /&gt;
* stands for Virtual Machine Monitor, also known as the hyper-visor[4]&lt;br /&gt;
* responsible for virtualization of hardware(mapping physical to virtual) and the VM that run on top of the virtuallized hardware [4]&lt;br /&gt;
* usually a small os with no drivers , so it is coupled with a linux distro that provides device / hardware access [4]&lt;br /&gt;
** the os that the VMM is using for driver&#039;s is called the hostOS [6]&lt;br /&gt;
*the hostOS provides login and physical access to the hardware as well as management for the VMM [6]&lt;br /&gt;
=== VM ===&lt;br /&gt;
* the OS that the vm is running is called the guestOS [6]&lt;br /&gt;
* the guestOS only sees resources that have been allocated to the VM [6]&lt;br /&gt;
==== three approaches ====&lt;br /&gt;
*Type I virtualization [5]&lt;br /&gt;
** runs off the physical hardware [4]&lt;br /&gt;
** Isolation of the guestOs from the hardware is done threw processe level protection meachnism[6]&lt;br /&gt;
*** ring 0 = VMM [6]&lt;br /&gt;
*** ring 1 = VM [6]&lt;br /&gt;
*** this means all instructions from the VM must go threw the VMM [6]&lt;br /&gt;
** since there can be multiple VM&#039;s on a computer the scheduling is done by the VMM [6]&lt;br /&gt;
** on boot the VMM creates a hardware platform for the VM [6]&lt;br /&gt;
** load&#039;s the VM kernel into virtual memory and then boot&#039;s it like a regular computer [6]&lt;br /&gt;
** ex. Xen [4]&lt;br /&gt;
*Type II virtualization [5]&lt;br /&gt;
** run off the host Os [4]&lt;br /&gt;
** ex. VMware , QEMU [4]&lt;br /&gt;
* Para-virtualization [6]&lt;br /&gt;
** Similar to Type but use the HostOs for Device driver access [6]&lt;br /&gt;
** Provide a virtualization that is similar to hardware [From the paper posted, no citation yet]&lt;br /&gt;
** GuestOS and Hypervisor work together to improve performance&lt;br /&gt;
&lt;br /&gt;
== Exokernel ==&lt;br /&gt;
* Micro-kernel architecture with limited abstractions, ask for resource, get resource not resource abstraction&lt;br /&gt;
* Less functionality provided by kernel, security and handling of resource sharing&lt;br /&gt;
* Once application receives resource, it can use it as it wishes/in control&lt;br /&gt;
* Keep the basic kernel to handle allocating resources and sharing rather than developing straight to the hardware&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
* multiplex resources securely providing protection to mutual distrustful application threw the use of secure binding&#039;s[1]&lt;br /&gt;
* Goal of the exokernel is to give LibOS maximum freedom with out allowing them to interfere with each other. to do this the exokernel separates protection from management in doing this it provide 3 important tasks[1]&lt;br /&gt;
** tracking ownership of resources [1]&lt;br /&gt;
** ensuring protection by guarding all resource usage and binding points (not to shure what binding points are)[1]&lt;br /&gt;
** revoking access to the resources [1]&lt;br /&gt;
* LibrayOS (LibOs)&lt;br /&gt;
** Reduces the number of kernel crossings[1]&lt;br /&gt;
** Not trusted by the exokernel so can be trusted by the application , Example given is a bad parameter passed to the LibOs only the application is affected.[1] (So LibOs cant interact with kernel ???)&lt;br /&gt;
** Any application running on the Exokernel can change the LibrayOs freely [1]&lt;br /&gt;
** Application that use LibOS that implement standard interfaces (POSIX) will be portable on any system with the same interface [1]&lt;br /&gt;
** LibOs can be made portable if it is designed to interact with a low-level machine independent level to hide hardware details [1]&lt;br /&gt;
&lt;br /&gt;
=== Exokernel Design ===&lt;br /&gt;
==== Design Principles ====&lt;br /&gt;
*Securely Expose Hardware [1]&lt;br /&gt;
** an Exokernel tries to create low level primitives that the hardware resources can be accessed from, this also includes interrupts,exceptions [1]&lt;br /&gt;
** the exokernel also export privileged instructions to the LibOS so that traditional OS abstractions can be implemented (eg Process , address pace)[1]&lt;br /&gt;
** Exokernels should avoid resource management except when required protection ( allocation , revocation , ownership)[1]&lt;br /&gt;
** application based resource management is the best way to build flexible efficient flexible systems [1]&lt;br /&gt;
*Expose allocation[1]&lt;br /&gt;
** allow LibOs to request physical resources [1]&lt;br /&gt;
** resource allocation should not be automatic, the LibOS should participate in every single allocation decision [1]&lt;br /&gt;
*Expose Names[1]&lt;br /&gt;
** Use physical name&#039;s when ever possible[3] (not to sure what physical names are, I think it is as simple as what the hardware is called)--[[User:Asoknack|Asoknack]] 20:27, 9 October 2010 (UTC)&lt;br /&gt;
** Physical names capture useful information [3]&lt;br /&gt;
*** safer than and less resource intensive than virtual names as no translations are needed[3]&lt;br /&gt;
*Expose Revocation [1]&lt;br /&gt;
** use visible revocation protocol [1]&lt;br /&gt;
** allows well behaved LibOS to preform application level resource management [1]&lt;br /&gt;
** Visible revocation allows the LibOS to choose what instance of the resource to release[1](Visible means that when revocation happens the exokernel tell the LibOS that resource is being revoked)&lt;br /&gt;
&#039;&#039;&#039; Policy &#039;&#039;&#039;&lt;br /&gt;
* LibOS handle resource policy decisions&lt;br /&gt;
* Exokernels have a policy to decided between competing LibOS (Priority , share of resources)&lt;br /&gt;
** it enforces this threw allocation and deallocation (every thing can achieved threw this even what block to write and such)&lt;br /&gt;
&lt;br /&gt;
==== Secure Bindings ====&lt;br /&gt;
* Used by the exokernel to allow the LibOS to bind to resources [1]&lt;br /&gt;
* Allows the separation of protection and resource use [1]&lt;br /&gt;
* only checks authorization during bind time [1]&lt;br /&gt;
** Application&#039;s with complex needs for resources only authorized during bind.[1]&lt;br /&gt;
* access checking is done during access time and there is no need to understand complex resources needs during access[1]&lt;br /&gt;
** (this means that the exokernel checks once to make sure an application has authorization once approved, when the application tries to use the resource the exokernel is only concerned about policy conflict&#039;s)--[[User:Asoknack|Asoknack]] 18:20, 9 October 2010 (UTC)&lt;br /&gt;
** allows the kernel to protect the resources with out understanding what the resource is [1]&lt;br /&gt;
*three way&#039;s to implement&lt;br /&gt;
* Hardware Mechanisms [1]&lt;br /&gt;
* Software caching [1]&lt;br /&gt;
* Downloading application code [1]&lt;br /&gt;
&#039;&#039;&#039; Downloading Code to the Kernel &#039;&#039;&#039;&lt;br /&gt;
* used to implement secure bindings , and improve performance[1]&lt;br /&gt;
** eliminate the number of kernel crossings [1]&lt;br /&gt;
** downloaded code can be run with out the application to be scheduled [2]&lt;br /&gt;
==== Visible Resource Revocation ====&lt;br /&gt;
* Used for most resources [1]&lt;br /&gt;
** allows for LibOS to help with deallocation [1]&lt;br /&gt;
** LibOS are able to garner what resources are scare [1]&lt;br /&gt;
* Slower than Invisible as application involvement is required [1]&lt;br /&gt;
** ex of when invisible is used is Processor addressing-context identifiers [1]&lt;br /&gt;
==== Abort Protocol ====&lt;br /&gt;
* allows the exokernel to take resources away from the LibOS [1]&lt;br /&gt;
* used when the LibOS fails to respond to the revocation request [1]&lt;br /&gt;
* Exokernel must be careful not to delete as the LibOS might need to write some system critical data to the resource [1]&lt;br /&gt;
&lt;br /&gt;
== Comparisons  ==&lt;br /&gt;
====Exokernel/Microkernel====&lt;br /&gt;
&#039;&#039;&#039;Similarities&#039;&#039;&#039;&lt;br /&gt;
* Limited functionality in kernel&lt;br /&gt;
** functionality in kernel to handle sharing of resources and security&lt;br /&gt;
** avoids programming directly to hardware which creates a dependency&lt;br /&gt;
* Additional functionality provided in user space as processes&lt;br /&gt;
&#039;&#039;&#039;Differences&#039;&#039;&#039;&lt;br /&gt;
* Minimal abstractions provided by the kernel&lt;br /&gt;
** Applications given more power in exokernel&lt;br /&gt;
&lt;br /&gt;
====Exokernel/VM====&lt;br /&gt;
&#039;&#039;&#039;Similarities&#039;&#039;&#039;&lt;br /&gt;
* Idea of partitioning resources between applications/OSs&lt;br /&gt;
* &amp;quot;Control&amp;quot; of resource given&lt;br /&gt;
* Isolation from other applications/OSs&lt;br /&gt;
&#039;&#039;&#039;Differences&#039;&#039;&#039;&lt;br /&gt;
* Exokernel runs applications, VM runs OS&lt;br /&gt;
* VM uses a hostOS and guestOSs run on top&lt;br /&gt;
* Virtualization on VMs, Exokernel deals with real resources&lt;br /&gt;
* VM hides a lot of information because it emulates. Exokernel does not.&lt;br /&gt;
&lt;br /&gt;
====Microkernel/VM====&lt;br /&gt;
&#039;&#039;&#039;Differences&#039;&#039;&#039;&lt;br /&gt;
* With a virtual machine, you are not virtualizing apps like with a microkernel but virtualizing an entire Operating System.&lt;br /&gt;
* This can be costly but the benefits are that it&#039;s easier and all the standard OS features are available.&lt;br /&gt;
&lt;br /&gt;
== References ==&lt;br /&gt;
[1]&amp;lt;nowiki&amp;gt; Engler, D. R., Kaashoek, M. F., and O&#039;Toole, J. 1995. Exokernel: an operating system architecture for application-level resource management. In Proceedings of the Fifteenth ACM Symposium on Operating Systems Principles  (Copper Mountain, Colorado, United States, December 03 - 06, 1995). M. B. Jones, Ed. SOSP &#039;95. ACM, New York, NY, 251-266. DOI= http://doi.acm.org/10.1145/224056.224076 &amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[2]&amp;lt;nowiki&amp;gt;Engler, Dawson R. &amp;quot;The Exokernel Operating System Architecture.&amp;quot; Diss. Massachusetts Institute of Technology, Dept. of Electrical Engineering and Computer Science, 1998. Web. 9 Oct. 2010. &amp;lt;http://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.61.5054&amp;amp;rep=rep1&amp;amp;type=pdf&amp;gt;.&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[3]&amp;lt;nowiki&amp;gt;Kaashoek, M. F., Engler, D. R., Ganger, G. R., Briceño, H. M., Hunt, R., Mazières, D., Pinckney, T., Grimm, R., Jannotti, J., and Mackenzie, K. 1997. Application performance and flexibility on exokernel systems. In Proceedings of the Sixteenth ACM Symposium on Operating Systems Principles  (Saint Malo, France, October 05 - 08, 1997). W. M. Waite, Ed. SOSP &#039;97. ACM, New York, NY, 52-65. DOI= http://doi.acm.org/10.1145/268998.266644 &amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[4]&amp;lt;nowiki&amp;gt;Vallee, G.; Naughton, T.; Engelmann, C.; Hong Ong; Scott, S.L.; , &amp;quot;System-Level Virtualization for High Performance Computing,&amp;quot; Parallel, Distributed and Network-Based Processing, 2008. PDP 2008. 16th Euromicro Conference on , vol., no., pp.636-643, 13-15 Feb. 2008&lt;br /&gt;
DOI= http://doi.acm.org/10.1109/PDP.2008.85 &amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[5]&amp;lt;nowiki&amp;gt;Goldberg, R. P. 1973. Architecture of virtual machines. In Proceedings of the Workshop on Virtual Computer Systems  (Cambridge, Massachusetts, United States, March 26 - 27, 1973). ACM, New York, NY, 74-112. DOI= http://doi.acm.org/10.1145/800122.803950 &amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[6]&amp;lt;nowiki&amp;gt;Vallee, G., Naughton, T., and Scott, S. L. 2007. System management software for virtual environments. In Proceedings of the 4th international Conference on Computing Frontiers (Ischia, Italy, May 07 - 09, 2007). CF &#039;07. ACM, New York, NY, 153-160. DOI= http://doi.acm.org/10.1145/1242531.1242555 &amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[7]&amp;lt;nowiki&amp;gt;Liedtke, J. 1995. On micro-kernel construction. In Proceedings of the Fifteenth ACM Symposium on Operating Systems Principles  (Copper Mountain, Colorado, United States, December 03 - 06, 1995). M. B. Jones, Ed. SOSP &#039;95. ACM, New York, NY, 237-250. DOI= http://doi.acm.org/10.1145/224056.224075 &amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Unsorted ==&lt;br /&gt;
An overview of exokernels,virtual machines, microkernels *[http://www2.supchurch.org:10999/files/school/classes/CSCI4730/Lectures/grad-structures.ppt Overview](Power Point)&amp;lt;br&amp;gt;&lt;br /&gt;
Should not be used as a source but an overview.&lt;br /&gt;
&lt;br /&gt;
The original paper on [http://portal.acm.org/citation.cfm?id=224076 Exokernels] --[[User:Gautam|Gautam]] 22:39, 6 October 2010 (UTC)&lt;br /&gt;
&lt;br /&gt;
Exokernel-&lt;br /&gt;
Minimalistic abstractions for developers&lt;br /&gt;
Exokernels can be seen as a good compromise between virtual machines and microkernels in the sense that exokernels can give that low level access to developers similar to direct access through a protected layer and at the same time can contain enough hardware abstraction to allow similar benefit of hiding the hardware resources to application programs.&lt;br /&gt;
Exokernel – fewest hardware abstractions to developer&lt;br /&gt;
Microkernel - is the near-minimum amount of software that can provide the mechanisms needed to implement an operating system&lt;br /&gt;
Virtual machine is a simulation of any or devices requested by an application program&lt;br /&gt;
Exokenel – I’ve got a sound card&lt;br /&gt;
Virtual Machine – I’ve got the sound card you’re looking for, perfect virtual match&lt;br /&gt;
Microkernel – I’ve got sound card that plays Khazikstan sound format only&lt;br /&gt;
MicroKernel - Very small, very predictable, good for schedualing (QNX is a microkernel - POSIX compatable, benefits of running linux software like modern browsers) &lt;br /&gt;
&lt;br /&gt;
This is some ideas I&#039;ve got on this question, please contribute below&lt;br /&gt;
-Rovic&lt;br /&gt;
&lt;br /&gt;
Outlining some main features here as I see them.&lt;br /&gt;
&lt;br /&gt;
I found that the exokernel was an even lower-level design than the microkernel, closer to the hardware without abstraction. They have the same architecture with the basic functionality contained in the kernel to manage everyone. As the exokernel &amp;quot;gives&amp;quot; the resource to the application it can use the resource in isolation of other applications (until forced to shared) much like VMs receive their resources, either partitioned or virtualized, and execute as if its running on its own machine. There is this similar notion of partitioning the resources among applications/OS and allowing them to take control of what they have. &lt;br /&gt;
&lt;br /&gt;
I&#039;ll locate some references later on. --[[User:Slay|Slay]] 15:00, 7 October 2010 (UTC)&lt;br /&gt;
&lt;br /&gt;
I&#039;m just going to post my answer for question 1 on the individuel assignment and hope it helps. --[[User:Aellebla|Aellebla]] 15:06, 12 October 2010 (UTC)&lt;br /&gt;
&lt;br /&gt;
The design of the micro kernel was to take everything they could out of the Kernel and put it into a process. For ex, networking would be put into a process instead of staying in the kernel. The micro kernel dev&#039;s tried to keep lots of things in user space for efficiency. But one major problem with this is there would be a large amount of moving from a process to the kernel to user space and back again and this is a costly, non efficient process.It was an application specific OS, there was no multiplexing. With a virtual machine you are not virtualizing apps like with a microkernel but virtualizing an entire Operating System. This is very heavy however but the benefits are that it‟s easy and all the standard OS features are there whereas in a microkernel setup they would not all be there and this can be seen as a compromise.&lt;br /&gt;
&lt;br /&gt;
Exokernels can be seen as a compromise to virtual machines and microkernels because virtual machines emulate and exokernels do not. When you emulate something you hide a lot of the actual information because you wouldn‟t be able to see the „real‟ hardware. If we look at a virtual box setup running Linux, and we go look at all the hardware, it will be displayed as fake hardware.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Maybe we can have an introduction - paragraph or so on each type - then similarities - differences - and the compromise.  I am going to do some research and writing this weekend and I will put some up  -- Jslonosky&lt;br /&gt;
&lt;br /&gt;
btw in my page (i guess you can call it that) i have some resources i have found  --[[User:Asoknack|Asoknack]] 15:50, 8 October 2010 (UTC)&lt;br /&gt;
- Wow, nice man. I will go ahead and write up the descriptive paragraphs on each kernel and virtual machine if no one minds. --Jslonosky&lt;br /&gt;
&lt;br /&gt;
I think we should divide up the paragraphs and proofread each others instead. (Are there only 4 of us?) I don&#039;t have much time to work on this today though but I&#039;ll try to work on it tomorrow morning. - Slay&lt;br /&gt;
&lt;br /&gt;
Sure guy.  That sounds good.  There should be 5 or 6 of us though.. . Oh well. Their loss.  I will do some before or after work today. Ill start with Microkernel since there is not a large amount of info here, and so we don&#039;t overlap each other - JSlonosky&lt;br /&gt;
&lt;br /&gt;
yeah i think there was more like 7 of us btw if any one has any more information feel free to add it would be nice if you add the references so that way citing is really easy on  acm.org it will auto give you the citation info (where it says Display Formats click on ACM Ref  and new window with the citation info auto pop&#039;s up) --[[User:Asoknack|Asoknack]] 02:28, 11 October 2010 (UTC)&lt;br /&gt;
&lt;br /&gt;
I added an outline of the similarities and differences. Add any more that I missed. These are from observations so I don&#039;t have any resources. -Slay&lt;br /&gt;
That&#039;s probably fine.  Our textbook probably outlines some of them, so I am sure we can find a few there - JSlonosky&lt;br /&gt;
&lt;br /&gt;
Talked to the teacher today and for VM he said we should focus on the implementation such as Xen and VMware , he also said to talk about para virtualization --[[User:Asoknack|Asoknack]] 18:42, 12 October 2010 (UTC)&lt;br /&gt;
&lt;br /&gt;
A paper about emulation and paravirtualization [http://portal.acm.org/citation.cfm?id=1189289&amp;amp;coll=GUIDE&amp;amp;dl=GUIDE&amp;amp;CFID=105648137&amp;amp;CFTOKEN=47153176&amp;amp;ret=1#Fulltext link] - Slay&lt;br /&gt;
&lt;br /&gt;
Oh no big words.  Sorry about the Microkernels not done yet.  Working on an outline now.  Finally found how to access the ACM through carleton.  Gawd. &lt;br /&gt;
I am planning an outline, quick bit about kernels in general, (maybe mention monolith kernels?), and what microkernels do.&lt;br /&gt;
I see the microkernel outline info and a reference ( Whomever did that == hero: true) about the scheduling and the Memory management.  Should that be included in kernels in general and then mention what microkernels build upon/change? - JSlonosky&lt;br /&gt;
&lt;br /&gt;
Sorry late to the party here. My mistake was not checking the discussion page when I checked in. I don&#039;t want to trample anyone&#039;s current work but I don&#039;t see any work on the final essay done. I would love to help just need to know where I can step in so as to not screw anyone else up. -- [[User:Cling|Cling]]&lt;br /&gt;
&lt;br /&gt;
I don&#039;t think I&#039;ll be able to write up something for the final essay, even though I suggested splitting it. I&#039;ll do research tonight though on the paravirtualization. If I find the time, I&#039;ll try to write something. Sorry about that. --[[User:Slay|Slay]] 21:52, 13 October 2010 (UTC)&lt;br /&gt;
&lt;br /&gt;
We all have 3004 to do too, man.  I do not think anyone has chosen to do Virtual Machine section yet, or the Exokernel itself. But the contrast paragraph and the intro is chosen, and intro is done.  Microkernel and kernel will be done in a hour I hope. -- JSlonosky&lt;br /&gt;
&lt;br /&gt;
I can attempt to write up anything, the issue is I don&#039;t have any context on what to write, how do I tie it in to the rest of the essay? I only have a Japanese Quiz tomorrow morning then I should be good to write anything up for the rest of the day. As someone who has already written part of the essay, and assuming I attempt the exokernel section, how much do you think I should write? Should it just be about exokernel or should there be comparisons to the other topics? Thanks --[[User:Cling|Cling]] 23:14, 13 October 2010 (UTC)&lt;br /&gt;
&lt;br /&gt;
Go with the Exokernel itself.  Slade is getting off work in a hour and we can double check what he is doing then.  We can put it together tomorrow sometime, and fill in the other stuff. - JSLonosky&lt;br /&gt;
&lt;br /&gt;
I&#039;ll attempt to work on VM tonight, then. I would feel so bad if I didn&#039;t write anything. -Slay&lt;br /&gt;
&lt;br /&gt;
Still wondering how much to write, I think we should decide on a decent word count or length so we don&#039;t have one short section (which would probably be mine) and/or one massive section that dwarfs all the others. If anyone has already written a section could you post your word count so we can aim to be around there, it would obviously be just a recommendation but it&#039;s just better to be on the safe side and have everything uniform. I haven&#039;t seen any formal requirements for the essay but I could be wrong, I also haven&#039;t been to class in a while. --[[User:Cling|Cling]] 23:33, 13 October 2010 (UTC)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Yeah Slay, VM probably doesnt have much to write about.  Get something down, and we can go over it.  CLing, Just write what you think.  There is not a lot to go over if I write kernel/microkernel well enough.  What is a exokernel?  exokernel was an even lower-level design than the microkernel, closer to the hardware without abstraction, basically (As said by Slade). I will probably end up with 500 or a bit more words. -- JSlonosky&lt;br /&gt;
&lt;br /&gt;
Sound off!&lt;br /&gt;
&lt;br /&gt;
Who&#039;s actually reading this? Add your name to the list...&lt;br /&gt;
&lt;br /&gt;
Rovic P.&lt;br /&gt;
Jon Slonosky&lt;br /&gt;
Corey Ling&lt;br /&gt;
Steph Lay&lt;br /&gt;
&lt;br /&gt;
== The Essay ==&lt;br /&gt;
&lt;br /&gt;
Let&#039;s actually breakdown the essay into components then write it here.&lt;br /&gt;
&lt;br /&gt;
I&#039;d like to go along the premise that microkernels and and virtual machines are &amp;quot;weaker&amp;quot; than exokernels in design for the essay. If anyone has any objections, add it here. &lt;br /&gt;
&lt;br /&gt;
-Slade&lt;br /&gt;
&lt;br /&gt;
 what do you mean by &amp;quot;weaker&amp;quot;(i think you mean exokernels&#039; takes the best of both worlds ) --[[User:Asoknack|Asoknack]] 02:45, 13 October 2010 (UTC)&lt;br /&gt;
&lt;br /&gt;
What I mean by weaker is that we should focus on the things microkernels and virtual machines may not do as well compared to a system based off an exokernel design and then focus on how an exokenenel can take the best of both worlds. Please choose which section you will work on, that&#039;s not to say it&#039;ll be the only part you do, but rather we&#039;ll all contribute to each part please. 1 day left.&lt;br /&gt;
-Slade&lt;br /&gt;
&lt;br /&gt;
...to the extent that exokernels be seen as a compromise between virtual machines and microkernels. &lt;br /&gt;
-I&#039;ll work on the initial intro. -Slade&lt;br /&gt;
&lt;br /&gt;
3 paragraphs that prove it&lt;br /&gt;
Explain how the key design characteristics of these three system architectures compare with each other. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
intro/thesis statement -Rovic P.&lt;br /&gt;
&lt;br /&gt;
Paragraph 1 -Microkernel -Jon S.&lt;br /&gt;
&lt;br /&gt;
Paragraph 2 -Virtual Machine -Steph L.&lt;br /&gt;
&lt;br /&gt;
Paragraph 3 -Exokernel -Corey L&lt;br /&gt;
&lt;br /&gt;
Conclusion - Jon S.   -  Only a sentence per paragraph, excluding Intro&lt;/div&gt;</summary>
		<author><name>Slay</name></author>
	</entry>
	<entry>
		<id>https://homeostasis.scs.carleton.ca/wiki/index.php?title=Talk:COMP_3000_Essay_1_2010_Question_1&amp;diff=3516</id>
		<title>Talk:COMP 3000 Essay 1 2010 Question 1</title>
		<link rel="alternate" type="text/html" href="https://homeostasis.scs.carleton.ca/wiki/index.php?title=Talk:COMP_3000_Essay_1_2010_Question_1&amp;diff=3516"/>
		<updated>2010-10-14T01:43:53Z</updated>

		<summary type="html">&lt;p&gt;Slay: /* Unsorted */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Microkernel == &lt;br /&gt;
* Moving kernel functionality into processes contained in user space, e.g. file systems, drivers&lt;br /&gt;
* Keep basic functionality in kernel to handle sharing of resources&lt;br /&gt;
* Separation allows for manageability and security, corruption in one does not necessarily cause failure in system&lt;br /&gt;
* Large amount of moving from a process to Kernel to user space and back again, this is a costly operation.&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039; Microkernel &#039;&#039;&#039;&lt;br /&gt;
* try&#039;s to minimize the amount of software that is mandatory or required [7]&lt;br /&gt;
advantages of Microkernel&lt;br /&gt;
* favors a modular system structure [7]&lt;br /&gt;
* one failure of a program does not impact any other programs [7]&lt;br /&gt;
* can support more than one api or strategies since all programs are separated [7]&lt;br /&gt;
==== Microkernel Concepts ==== &lt;br /&gt;
* piece of code is allowed in the kernel only if moving it outside the kernel would adversely affect the system. [7]&lt;br /&gt;
* any subsystem program created must be independent of all other subsystem&#039;s, any subsystem that is used can guarantee this from all other subsystems [7]&lt;br /&gt;
===== Address Space =====&lt;br /&gt;
* a mapping that relates the physical page to the virtual page. [7]&lt;br /&gt;
* processor specific [7]&lt;br /&gt;
* hide&#039;s the hardware&#039;s concept of address space [7]&lt;br /&gt;
* based off the idea of recursion each subsystem has it&#039;s own address space [7]&lt;br /&gt;
* the micro kernel provides 3 operations [7]&lt;br /&gt;
** Grant [7]&lt;br /&gt;
*** allows the owner to give a page to a recipient, provided the recipient want&#039;s it the page is removed from the owner&#039;s address space and but in the recipients. [7]&lt;br /&gt;
*** must be available to the owner. [7]&lt;br /&gt;
** Map [7]&lt;br /&gt;
*** allows the user to share a page with a recipient [7]&lt;br /&gt;
*** page is not removed from the owner&#039;s address space. [7]&lt;br /&gt;
** Flush [7]&lt;br /&gt;
*** remove&#039;s the page from all recipients address space [7]&lt;br /&gt;
*** how does this work with Grant --[[User:Asoknack|Asoknack]] 19:10, 12 October 2010 (UTC)&lt;br /&gt;
* allows memory management and paging out side the kernel&lt;br /&gt;
* Map and flush is required for memory manger&#039;s and pagers [7]&lt;br /&gt;
* can be used to implement access right&#039;s [7]&lt;br /&gt;
* controlling I/O Right&#039;s and driver&#039;s are not done at kernel level [7]&lt;br /&gt;
&lt;br /&gt;
===== Thread&#039;s IPC =====&lt;br /&gt;
* Threads&lt;br /&gt;
** in the kernel [7]&lt;br /&gt;
** Since a thread has an address space , all changes to the thread need to be done by the kernel [7]&lt;br /&gt;
* IPC [7]&lt;br /&gt;
** in the kernel IPC&lt;br /&gt;
** grant and map also need IPC  (So buye the priciple above this has to be in the kernel)[7]&lt;br /&gt;
** basic way for sub process to communicate. [7]&lt;br /&gt;
* Interrupts&lt;br /&gt;
** partially in the kernel [7]&lt;br /&gt;
** hard ware is a set of thread&#039;s which are empty except for there unique sender id [7]&lt;br /&gt;
** transformation of the message to the interrupt is done in the kernel [7]&lt;br /&gt;
** the kernel is not involved in device - specific interrupt&#039;s and does not understand the interrupt. [7]&lt;br /&gt;
*** resting the interrupt is done at user level [7]&lt;br /&gt;
** if a privileged command is need it is done implicitly the next time an IPC command is sent from the device [7]&lt;br /&gt;
&lt;br /&gt;
===== Unique Identifiers =====&lt;br /&gt;
&lt;br /&gt;
== Virtual Machine ==&lt;br /&gt;
* Partitioning or virtualizing resources among OS virtualization running on top of host OS&lt;br /&gt;
* Virtualized OS believe running on full machine on its own&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
System Level Virtualization&lt;br /&gt;
&lt;br /&gt;
=== VMM ===&lt;br /&gt;
* stands for Virtual Machine Monitor, also known as the hyper-visor[4]&lt;br /&gt;
* responsible for virtualization of hardware(mapping physical to virtual) and the VM that run on top of the virtuallized hardware [4]&lt;br /&gt;
* usually a small os with no drivers , so it is coupled with a linux distro that provides device / hardware access [4]&lt;br /&gt;
** the os that the VMM is using for driver&#039;s is called the hostOS [6]&lt;br /&gt;
*the hostOS provides login and physical access to the hardware as well as management for the VMM [6]&lt;br /&gt;
=== VM ===&lt;br /&gt;
* the OS that the vm is running is called the guestOS [6]&lt;br /&gt;
* the guestOS only sees resources that have been allocated to the VM [6]&lt;br /&gt;
==== three approaches ====&lt;br /&gt;
*Type I virtualization [5]&lt;br /&gt;
** runs off the physical hardware [4]&lt;br /&gt;
** Isolation of the guestOs from the hardware is done threw processe level protection meachnism[6]&lt;br /&gt;
*** ring 0 = VMM [6]&lt;br /&gt;
*** ring 1 = VM [6]&lt;br /&gt;
*** this means all instructions from the VM must go threw the VMM [6]&lt;br /&gt;
** since there can be multiple VM&#039;s on a computer the scheduling is done by the VMM [6]&lt;br /&gt;
** on boot the VMM creates a hardware platform for the VM [6]&lt;br /&gt;
** load&#039;s the VM kernel into virtual memory and then boot&#039;s it like a regular computer [6]&lt;br /&gt;
** ex. Xen [4]&lt;br /&gt;
*Type II virtualization [5]&lt;br /&gt;
** run off the host Os [4]&lt;br /&gt;
** ex. VMware , QEMU [4]&lt;br /&gt;
* Para-virtualization [6]&lt;br /&gt;
** Similar to Type but use the HostOs for Device driver access [6]&lt;br /&gt;
** Provide a virtualization that is similar to hardware [From the paper posted, no citation yet]&lt;br /&gt;
** GuestOS and Hypervisor work together to improve performance&lt;br /&gt;
&lt;br /&gt;
== Exokernel ==&lt;br /&gt;
* Micro-kernel architecture with limited abstractions, ask for resource, get resource not resource abstraction&lt;br /&gt;
* Less functionality provided by kernel, security and handling of resource sharing&lt;br /&gt;
* Once application receives resource, it can use it as it wishes/in control&lt;br /&gt;
* Keep the basic kernel to handle allocating resources and sharing rather than developing straight to the hardware&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
* multiplex resources securely providing protection to mutual distrustful application threw the use of secure binding&#039;s[1]&lt;br /&gt;
* Goal of the exokernel is to give LibOS maximum freedom with out allowing them to interfere with each other. to do this the exokernel separates protection from management in doing this it provide 3 important tasks[1]&lt;br /&gt;
** tracking ownership of resources [1]&lt;br /&gt;
** ensuring protection by guarding all resource usage and binding points (not to shure what binding points are)[1]&lt;br /&gt;
** revoking access to the resources [1]&lt;br /&gt;
* LibrayOS (LibOs)&lt;br /&gt;
** Reduces the number of kernel crossings[1]&lt;br /&gt;
** Not trusted by the exokernel so can be trusted by the application , Example given is a bad parameter passed to the LibOs only the application is affected.[1] (So LibOs cant interact with kernel ???)&lt;br /&gt;
** Any application running on the Exokernel can change the LibrayOs freely [1]&lt;br /&gt;
** Application that use LibOS that implement standard interfaces (POSIX) will be portable on any system with the same interface [1]&lt;br /&gt;
** LibOs can be made portable if it is designed to interact with a low-level machine independent level to hide hardware details [1]&lt;br /&gt;
&lt;br /&gt;
=== Exokernel Design ===&lt;br /&gt;
==== Design Principles ====&lt;br /&gt;
*Securely Expose Hardware [1]&lt;br /&gt;
** an Exokernel tries to create low level primitives that the hardware resources can be accessed from, this also includes interrupts,exceptions [1]&lt;br /&gt;
** the exokernel also export privileged instructions to the LibOS so that traditional OS abstractions can be implemented (eg Process , address pace)[1]&lt;br /&gt;
** Exokernels should avoid resource management except when required protection ( allocation , revocation , ownership)[1]&lt;br /&gt;
** application based resource management is the best way to build flexible efficient flexible systems [1]&lt;br /&gt;
*Expose allocation[1]&lt;br /&gt;
** allow LibOs to request physical resources [1]&lt;br /&gt;
** resource allocation should not be automatic, the LibOS should participate in every single allocation decision [1]&lt;br /&gt;
*Expose Names[1]&lt;br /&gt;
** Use physical name&#039;s when ever possible[3] (not to sure what physical names are, I think it is as simple as what the hardware is called)--[[User:Asoknack|Asoknack]] 20:27, 9 October 2010 (UTC)&lt;br /&gt;
** Physical names capture useful information [3]&lt;br /&gt;
*** safer than and less resource intensive than virtual names as no translations are needed[3]&lt;br /&gt;
*Expose Revocation [1]&lt;br /&gt;
** use visible revocation protocol [1]&lt;br /&gt;
** allows well behaved LibOS to preform application level resource management [1]&lt;br /&gt;
** Visible revocation allows the LibOS to choose what instance of the resource to release[1](Visible means that when revocation happens the exokernel tell the LibOS that resource is being revoked)&lt;br /&gt;
&#039;&#039;&#039; Policy &#039;&#039;&#039;&lt;br /&gt;
* LibOS handle resource policy decisions&lt;br /&gt;
* Exokernels have a policy to decided between competing LibOS (Priority , share of resources)&lt;br /&gt;
** it enforces this threw allocation and deallocation (every thing can achieved threw this even what block to write and such)&lt;br /&gt;
&lt;br /&gt;
==== Secure Bindings ====&lt;br /&gt;
* Used by the exokernel to allow the LibOS to bind to resources [1]&lt;br /&gt;
* Allows the separation of protection and resource use [1]&lt;br /&gt;
* only checks authorization during bind time [1]&lt;br /&gt;
** Application&#039;s with complex needs for resources only authorized during bind.[1]&lt;br /&gt;
* access checking is done during access time and there is no need to understand complex resources needs during access[1]&lt;br /&gt;
** (this means that the exokernel checks once to make sure an application has authorization once approved, when the application tries to use the resource the exokernel is only concerned about policy conflict&#039;s)--[[User:Asoknack|Asoknack]] 18:20, 9 October 2010 (UTC)&lt;br /&gt;
** allows the kernel to protect the resources with out understanding what the resource is [1]&lt;br /&gt;
*three way&#039;s to implement&lt;br /&gt;
* Hardware Mechanisms [1]&lt;br /&gt;
* Software caching [1]&lt;br /&gt;
* Downloading application code [1]&lt;br /&gt;
&#039;&#039;&#039; Downloading Code to the Kernel &#039;&#039;&#039;&lt;br /&gt;
* used to implement secure bindings , and improve performance[1]&lt;br /&gt;
** eliminate the number of kernel crossings [1]&lt;br /&gt;
** downloaded code can be run with out the application to be scheduled [2]&lt;br /&gt;
==== Visible Resource Revocation ====&lt;br /&gt;
* Used for most resources [1]&lt;br /&gt;
** allows for LibOS to help with deallocation [1]&lt;br /&gt;
** LibOS are able to garner what resources are scare [1]&lt;br /&gt;
* Slower than Invisible as application involvement is required [1]&lt;br /&gt;
** ex of when invisible is used is Processor addressing-context identifiers [1]&lt;br /&gt;
==== Abort Protocol ====&lt;br /&gt;
* allows the exokernel to take resources away from the LibOS [1]&lt;br /&gt;
* used when the LibOS fails to respond to the revocation request [1]&lt;br /&gt;
* Exokernel must be careful not to delete as the LibOS might need to write some system critical data to the resource [1]&lt;br /&gt;
&lt;br /&gt;
== Comparisons  ==&lt;br /&gt;
====Exokernel/Microkernel====&lt;br /&gt;
&#039;&#039;&#039;Similarities&#039;&#039;&#039;&lt;br /&gt;
* Limited functionality in kernel&lt;br /&gt;
** functionality in kernel to handle sharing of resources and security&lt;br /&gt;
** avoids programming directly to hardware which creates a dependency&lt;br /&gt;
* Additional functionality provided in user space as processes&lt;br /&gt;
&#039;&#039;&#039;Differences&#039;&#039;&#039;&lt;br /&gt;
* Minimal abstractions provided by the kernel&lt;br /&gt;
** Applications given more power in exokernel&lt;br /&gt;
&lt;br /&gt;
====Exokernel/VM====&lt;br /&gt;
&#039;&#039;&#039;Similarities&#039;&#039;&#039;&lt;br /&gt;
* Idea of partitioning resources between applications/OSs&lt;br /&gt;
* &amp;quot;Control&amp;quot; of resource given&lt;br /&gt;
* Isolation from other applications/OSs&lt;br /&gt;
&#039;&#039;&#039;Differences&#039;&#039;&#039;&lt;br /&gt;
* Exokernel runs applications, VM runs OS&lt;br /&gt;
* VM uses a hostOS and guestOSs run on top&lt;br /&gt;
* Virtualization on VMs, Exokernel deals with real resources&lt;br /&gt;
* VM hides a lot of information because it emulates. Exokernel does not.&lt;br /&gt;
&lt;br /&gt;
====Microkernel/VM====&lt;br /&gt;
&#039;&#039;&#039;Differences&#039;&#039;&#039;&lt;br /&gt;
* With a virtual machine, you are not virtualizing apps like with a microkernel but virtualizing an entire Operating System.&lt;br /&gt;
* This can be costly but the benefits are that it&#039;s easier and all the standard OS features are available.&lt;br /&gt;
&lt;br /&gt;
== References ==&lt;br /&gt;
[1]&amp;lt;nowiki&amp;gt; Engler, D. R., Kaashoek, M. F., and O&#039;Toole, J. 1995. Exokernel: an operating system architecture for application-level resource management. In Proceedings of the Fifteenth ACM Symposium on Operating Systems Principles  (Copper Mountain, Colorado, United States, December 03 - 06, 1995). M. B. Jones, Ed. SOSP &#039;95. ACM, New York, NY, 251-266. DOI= http://doi.acm.org/10.1145/224056.224076 &amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[2]&amp;lt;nowiki&amp;gt;Engler, Dawson R. &amp;quot;The Exokernel Operating System Architecture.&amp;quot; Diss. Massachusetts Institute of Technology, Dept. of Electrical Engineering and Computer Science, 1998. Web. 9 Oct. 2010. &amp;lt;http://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.61.5054&amp;amp;rep=rep1&amp;amp;type=pdf&amp;gt;.&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[3]&amp;lt;nowiki&amp;gt;Kaashoek, M. F., Engler, D. R., Ganger, G. R., Briceño, H. M., Hunt, R., Mazières, D., Pinckney, T., Grimm, R., Jannotti, J., and Mackenzie, K. 1997. Application performance and flexibility on exokernel systems. In Proceedings of the Sixteenth ACM Symposium on Operating Systems Principles  (Saint Malo, France, October 05 - 08, 1997). W. M. Waite, Ed. SOSP &#039;97. ACM, New York, NY, 52-65. DOI= http://doi.acm.org/10.1145/268998.266644 &amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[4]&amp;lt;nowiki&amp;gt;Vallee, G.; Naughton, T.; Engelmann, C.; Hong Ong; Scott, S.L.; , &amp;quot;System-Level Virtualization for High Performance Computing,&amp;quot; Parallel, Distributed and Network-Based Processing, 2008. PDP 2008. 16th Euromicro Conference on , vol., no., pp.636-643, 13-15 Feb. 2008&lt;br /&gt;
DOI= http://doi.acm.org/10.1109/PDP.2008.85 &amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[5]&amp;lt;nowiki&amp;gt;Goldberg, R. P. 1973. Architecture of virtual machines. In Proceedings of the Workshop on Virtual Computer Systems  (Cambridge, Massachusetts, United States, March 26 - 27, 1973). ACM, New York, NY, 74-112. DOI= http://doi.acm.org/10.1145/800122.803950 &amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[6]&amp;lt;nowiki&amp;gt;Vallee, G., Naughton, T., and Scott, S. L. 2007. System management software for virtual environments. In Proceedings of the 4th international Conference on Computing Frontiers (Ischia, Italy, May 07 - 09, 2007). CF &#039;07. ACM, New York, NY, 153-160. DOI= http://doi.acm.org/10.1145/1242531.1242555 &amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[7]&amp;lt;nowiki&amp;gt;Liedtke, J. 1995. On micro-kernel construction. In Proceedings of the Fifteenth ACM Symposium on Operating Systems Principles  (Copper Mountain, Colorado, United States, December 03 - 06, 1995). M. B. Jones, Ed. SOSP &#039;95. ACM, New York, NY, 237-250. DOI= http://doi.acm.org/10.1145/224056.224075 &amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Unsorted ==&lt;br /&gt;
An overview of exokernels,virtual machines, microkernels *[http://www2.supchurch.org:10999/files/school/classes/CSCI4730/Lectures/grad-structures.ppt Overview](Power Point)&amp;lt;br&amp;gt;&lt;br /&gt;
Should not be used as a source but an overview.&lt;br /&gt;
&lt;br /&gt;
The original paper on [http://portal.acm.org/citation.cfm?id=224076 Exokernels] --[[User:Gautam|Gautam]] 22:39, 6 October 2010 (UTC)&lt;br /&gt;
&lt;br /&gt;
Exokernel-&lt;br /&gt;
Minimalistic abstractions for developers&lt;br /&gt;
Exokernels can be seen as a good compromise between virtual machines and microkernels in the sense that exokernels can give that low level access to developers similar to direct access through a protected layer and at the same time can contain enough hardware abstraction to allow similar benefit of hiding the hardware resources to application programs.&lt;br /&gt;
Exokernel – fewest hardware abstractions to developer&lt;br /&gt;
Microkernel - is the near-minimum amount of software that can provide the mechanisms needed to implement an operating system&lt;br /&gt;
Virtual machine is a simulation of any or devices requested by an application program&lt;br /&gt;
Exokenel – I’ve got a sound card&lt;br /&gt;
Virtual Machine – I’ve got the sound card you’re looking for, perfect virtual match&lt;br /&gt;
Microkernel – I’ve got sound card that plays Khazikstan sound format only&lt;br /&gt;
MicroKernel - Very small, very predictable, good for schedualing (QNX is a microkernel - POSIX compatable, benefits of running linux software like modern browsers) &lt;br /&gt;
&lt;br /&gt;
This is some ideas I&#039;ve got on this question, please contribute below&lt;br /&gt;
-Rovic&lt;br /&gt;
&lt;br /&gt;
Outlining some main features here as I see them.&lt;br /&gt;
&lt;br /&gt;
I found that the exokernel was an even lower-level design than the microkernel, closer to the hardware without abstraction. They have the same architecture with the basic functionality contained in the kernel to manage everyone. As the exokernel &amp;quot;gives&amp;quot; the resource to the application it can use the resource in isolation of other applications (until forced to shared) much like VMs receive their resources, either partitioned or virtualized, and execute as if its running on its own machine. There is this similar notion of partitioning the resources among applications/OS and allowing them to take control of what they have. &lt;br /&gt;
&lt;br /&gt;
I&#039;ll locate some references later on. --[[User:Slay|Slay]] 15:00, 7 October 2010 (UTC)&lt;br /&gt;
&lt;br /&gt;
I&#039;m just going to post my answer for question 1 on the individuel assignment and hope it helps. --[[User:Aellebla|Aellebla]] 15:06, 12 October 2010 (UTC)&lt;br /&gt;
&lt;br /&gt;
The design of the micro kernel was to take everything they could out of the Kernel and put it into a process. For ex, networking would be put into a process instead of staying in the kernel. The micro kernel dev&#039;s tried to keep lots of things in user space for efficiency. But one major problem with this is there would be a large amount of moving from a process to the kernel to user space and back again and this is a costly, non efficient process.It was an application specific OS, there was no multiplexing. With a virtual machine you are not virtualizing apps like with a microkernel but virtualizing an entire Operating System. This is very heavy however but the benefits are that it‟s easy and all the standard OS features are there whereas in a microkernel setup they would not all be there and this can be seen as a compromise.&lt;br /&gt;
&lt;br /&gt;
Exokernels can be seen as a compromise to virtual machines and microkernels because virtual machines emulate and exokernels do not. When you emulate something you hide a lot of the actual information because you wouldn‟t be able to see the „real‟ hardware. If we look at a virtual box setup running Linux, and we go look at all the hardware, it will be displayed as fake hardware.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Maybe we can have an introduction - paragraph or so on each type - then similarities - differences - and the compromise.  I am going to do some research and writing this weekend and I will put some up  -- Jslonosky&lt;br /&gt;
&lt;br /&gt;
btw in my page (i guess you can call it that) i have some resources i have found  --[[User:Asoknack|Asoknack]] 15:50, 8 October 2010 (UTC)&lt;br /&gt;
- Wow, nice man. I will go ahead and write up the descriptive paragraphs on each kernel and virtual machine if no one minds. --Jslonosky&lt;br /&gt;
&lt;br /&gt;
I think we should divide up the paragraphs and proofread each others instead. (Are there only 4 of us?) I don&#039;t have much time to work on this today though but I&#039;ll try to work on it tomorrow morning. - Slay&lt;br /&gt;
&lt;br /&gt;
Sure guy.  That sounds good.  There should be 5 or 6 of us though.. . Oh well. Their loss.  I will do some before or after work today. Ill start with Microkernel since there is not a large amount of info here, and so we don&#039;t overlap each other - JSlonosky&lt;br /&gt;
&lt;br /&gt;
yeah i think there was more like 7 of us btw if any one has any more information feel free to add it would be nice if you add the references so that way citing is really easy on  acm.org it will auto give you the citation info (where it says Display Formats click on ACM Ref  and new window with the citation info auto pop&#039;s up) --[[User:Asoknack|Asoknack]] 02:28, 11 October 2010 (UTC)&lt;br /&gt;
&lt;br /&gt;
I added an outline of the similarities and differences. Add any more that I missed. These are from observations so I don&#039;t have any resources. -Slay&lt;br /&gt;
That&#039;s probably fine.  Our textbook probably outlines some of them, so I am sure we can find a few there - JSlonosky&lt;br /&gt;
&lt;br /&gt;
Talked to the teacher today and for VM he said we should focus on the implementation such as Xen and VMware , he also said to talk about para virtualization --[[User:Asoknack|Asoknack]] 18:42, 12 October 2010 (UTC)&lt;br /&gt;
&lt;br /&gt;
A paper about emulation and paravirtualization [http://portal.acm.org/citation.cfm?id=1189289&amp;amp;coll=GUIDE&amp;amp;dl=GUIDE&amp;amp;CFID=105648137&amp;amp;CFTOKEN=47153176&amp;amp;ret=1#Fulltext link] - Slay&lt;br /&gt;
&lt;br /&gt;
Oh no big words.  Sorry about the Microkernels not done yet.  Working on an outline now.  Finally found how to access the ACM through carleton.  Gawd. &lt;br /&gt;
I am planning an outline, quick bit about kernels in general, (maybe mention monolith kernels?), and what microkernels do.&lt;br /&gt;
I see the microkernel outline info and a reference ( Whomever did that == hero: true) about the scheduling and the Memory management.  Should that be included in kernels in general and then mention what microkernels build upon/change? - JSlonosky&lt;br /&gt;
&lt;br /&gt;
Sorry late to the party here. My mistake was not checking the discussion page when I checked in. I don&#039;t want to trample anyone&#039;s current work but I don&#039;t see any work on the final essay done. I would love to help just need to know where I can step in so as to not screw anyone else up. -- [[User:Cling|Cling]]&lt;br /&gt;
&lt;br /&gt;
I don&#039;t think I&#039;ll be able to write up something for the final essay, even though I suggested splitting it. I&#039;ll do research tonight though on the paravirtualization. If I find the time, I&#039;ll try to write something. Sorry about that. --[[User:Slay|Slay]] 21:52, 13 October 2010 (UTC)&lt;br /&gt;
&lt;br /&gt;
We all have 3004 to do too, man.  I do not think anyone has chosen to do Virtual Machine section yet, or the Exokernel itself. But the contrast paragraph and the intro is chosen, and intro is done.  Microkernel and kernel will be done in a hour I hope. -- JSlonosky&lt;br /&gt;
&lt;br /&gt;
I can attempt to write up anything, the issue is I don&#039;t have any context on what to write, how do I tie it in to the rest of the essay? I only have a Japanese Quiz tomorrow morning then I should be good to write anything up for the rest of the day. As someone who has already written part of the essay, and assuming I attempt the exokernel section, how much do you think I should write? Should it just be about exokernel or should there be comparisons to the other topics? Thanks --[[User:Cling|Cling]] 23:14, 13 October 2010 (UTC)&lt;br /&gt;
&lt;br /&gt;
Go with the Exokernel itself.  Slade is getting off work in a hour and we can double check what he is doing then.  We can put it together tomorrow sometime, and fill in the other stuff. - JSLonosky&lt;br /&gt;
&lt;br /&gt;
I&#039;ll attempt to work on VM tonight, then. I would feel so bad if I didn&#039;t write anything. -Slay&lt;br /&gt;
&lt;br /&gt;
Still wondering how much to write, I think we should decide on a decent word count or length so we don&#039;t have one short section (which would probably be mine) and/or one massive section that dwarfs all the others. If anyone has already written a section could you post your word count so we can aim to be around there, it would obviously be just a recommendation but it&#039;s just better to be on the safe side and have everything uniform. I haven&#039;t seen any formal requirements for the essay but I could be wrong, I also haven&#039;t been to class in a while. --[[User:Cling|Cling]] 23:33, 13 October 2010 (UTC)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Yeah Slay, VM probably doesnt have much to write about.  Get something down, and we can go over it.  CLing, Just write what you think.  There is not a lot to go over if I write kernel/microkernel well enough.  What is a exokernel?  exokernel was an even lower-level design than the microkernel, closer to the hardware without abstraction, basically (As said by Slade). I will probably end up with 500 or a bit more words. -- JSlonosky&lt;br /&gt;
&lt;br /&gt;
Sound off!&lt;br /&gt;
&lt;br /&gt;
Who&#039;s actually reading this? Add your name to the list...&lt;br /&gt;
&lt;br /&gt;
Rovic P.&lt;br /&gt;
Jon Slonosky&lt;br /&gt;
Corey Ling&lt;br /&gt;
Steph Lay&lt;br /&gt;
&lt;br /&gt;
== The Essay ==&lt;br /&gt;
&lt;br /&gt;
Let&#039;s actually breakdown the essay into components then write it here.&lt;br /&gt;
&lt;br /&gt;
I&#039;d like to go along the premise that microkernels and and virtual machines are &amp;quot;weaker&amp;quot; than exokernels in design for the essay. If anyone has any objections, add it here. &lt;br /&gt;
&lt;br /&gt;
-Slade&lt;br /&gt;
&lt;br /&gt;
 what do you mean by &amp;quot;weaker&amp;quot;(i think you mean exokernels&#039; takes the best of both worlds ) --[[User:Asoknack|Asoknack]] 02:45, 13 October 2010 (UTC)&lt;br /&gt;
&lt;br /&gt;
What I mean by weaker is that we should focus on the things microkernels and virtual machines may not do as well compared to a system based off an exokernel design and then focus on how an exokenenel can take the best of both worlds. Please choose which section you will work on, that&#039;s not to say it&#039;ll be the only part you do, but rather we&#039;ll all contribute to each part please. 1 day left.&lt;br /&gt;
-Slade&lt;br /&gt;
&lt;br /&gt;
...to the extent that exokernels be seen as a compromise between virtual machines and microkernels. &lt;br /&gt;
-I&#039;ll work on the initial intro. -Slade&lt;br /&gt;
&lt;br /&gt;
3 paragraphs that prove it&lt;br /&gt;
Explain how the key design characteristics of these three system architectures compare with each other. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
intro/thesis statement -Rovic P.&lt;br /&gt;
&lt;br /&gt;
Paragraph 1 -Microkernel -Jon S.&lt;br /&gt;
&lt;br /&gt;
Paragraph 2 -Virtual Machine -unassigned&lt;br /&gt;
&lt;br /&gt;
Paragraph 3 -Exokernel -Corey L&lt;br /&gt;
&lt;br /&gt;
Conclusion - Jon S.   -  Only a sentence per paragraph, excluding Intro&lt;/div&gt;</summary>
		<author><name>Slay</name></author>
	</entry>
	<entry>
		<id>https://homeostasis.scs.carleton.ca/wiki/index.php?title=Talk:COMP_3000_Essay_1_2010_Question_1&amp;diff=3428</id>
		<title>Talk:COMP 3000 Essay 1 2010 Question 1</title>
		<link rel="alternate" type="text/html" href="https://homeostasis.scs.carleton.ca/wiki/index.php?title=Talk:COMP_3000_Essay_1_2010_Question_1&amp;diff=3428"/>
		<updated>2010-10-13T23:26:37Z</updated>

		<summary type="html">&lt;p&gt;Slay: /* Unsorted */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Microkernel == &lt;br /&gt;
* Moving kernel functionality into processes contained in user space, e.g. file systems, drivers&lt;br /&gt;
* Keep basic functionality in kernel to handle sharing of resources&lt;br /&gt;
* Separation allows for manageability and security, corruption in one does not necessarily cause failure in system&lt;br /&gt;
* Large amount of moving from a process to Kernel to user space and back again, this is a costly operation.&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039; Microkernel &#039;&#039;&#039;&lt;br /&gt;
* try&#039;s to minimize the amount of software that is mandatory or required [7]&lt;br /&gt;
advantages of Microkernel&lt;br /&gt;
* favors a modular system structure [7]&lt;br /&gt;
* one failure of a program does not impact any other programs [7]&lt;br /&gt;
* can support more than one api or strategies since all programs are separated [7]&lt;br /&gt;
==== Microkernel Concepts ==== &lt;br /&gt;
* piece of code is allowed in the kernel only if moving it outside the kernel would adversely affect the system. [7]&lt;br /&gt;
* any subsystem program created must be independent of all other subsystem&#039;s, any subsystem that is used can guarantee this from all other subsystems [7]&lt;br /&gt;
===== Address Space =====&lt;br /&gt;
* a mapping that relates the physical page to the virtual page. [7]&lt;br /&gt;
* processor specific [7]&lt;br /&gt;
* hide&#039;s the hardware&#039;s concept of address space [7]&lt;br /&gt;
* based off the idea of recursion each subsystem has it&#039;s own address space [7]&lt;br /&gt;
* the micro kernel provides 3 operations [7]&lt;br /&gt;
** Grant [7]&lt;br /&gt;
*** allows the owner to give a page to a recipient, provided the recipient want&#039;s it the page is removed from the owner&#039;s address space and but in the recipients. [7]&lt;br /&gt;
*** must be available to the owner. [7]&lt;br /&gt;
** Map [7]&lt;br /&gt;
*** allows the user to share a page with a recipient [7]&lt;br /&gt;
*** page is not removed from the owner&#039;s address space. [7]&lt;br /&gt;
** Flush [7]&lt;br /&gt;
*** remove&#039;s the page from all recipients address space [7]&lt;br /&gt;
*** how does this work with Grant --[[User:Asoknack|Asoknack]] 19:10, 12 October 2010 (UTC)&lt;br /&gt;
* allows memory management and paging out side the kernel&lt;br /&gt;
* Map and flush is required for memory manger&#039;s and pagers [7]&lt;br /&gt;
* can be used to implement access right&#039;s [7]&lt;br /&gt;
* controlling I/O Right&#039;s and driver&#039;s are not done at kernel level [7]&lt;br /&gt;
&lt;br /&gt;
===== Thread&#039;s IPC =====&lt;br /&gt;
* Threads&lt;br /&gt;
** in the kernel [7]&lt;br /&gt;
** Since a thread has an address space , all changes to the thread need to be done by the kernel [7]&lt;br /&gt;
* IPC [7]&lt;br /&gt;
** in the kernel IPC&lt;br /&gt;
** grant and map also need IPC  (So buye the priciple above this has to be in the kernel)[7]&lt;br /&gt;
** basic way for sub process to communicate. [7]&lt;br /&gt;
* Interrupts&lt;br /&gt;
** partially in the kernel [7]&lt;br /&gt;
** hard ware is a set of thread&#039;s which are empty except for there unique sender id [7]&lt;br /&gt;
** transformation of the message to the interrupt is done in the kernel [7]&lt;br /&gt;
** the kernel is not involved in device - specific interrupt&#039;s and does not understand the interrupt. [7]&lt;br /&gt;
*** resting the interrupt is done at user level [7]&lt;br /&gt;
** if a privileged command is need it is done implicitly the next time an IPC command is sent from the device [7]&lt;br /&gt;
&lt;br /&gt;
===== Unique Identifiers =====&lt;br /&gt;
&lt;br /&gt;
== Virtual Machine ==&lt;br /&gt;
* Partitioning or virtualizing resources among OS virtualization running on top of host OS&lt;br /&gt;
* Virtualized OS believe running on full machine on its own&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
System Level Virtualization&lt;br /&gt;
&lt;br /&gt;
=== VMM ===&lt;br /&gt;
* stands for Virtual Machine Monitor, also known as the hyper-visor[4]&lt;br /&gt;
* responsible for virtualization of hardware(mapping physical to virtual) and the VM that run on top of the virtuallized hardware [4]&lt;br /&gt;
* usually a small os with no drivers , so it is coupled with a linux distro that provides device / hardware access [4]&lt;br /&gt;
** the os that the VMM is using for driver&#039;s is called the hostOS [6]&lt;br /&gt;
*the hostOS provides login and physical access to the hardware as well as management for the VMM [6]&lt;br /&gt;
=== VM ===&lt;br /&gt;
* the OS that the vm is running is called the guestOS [6]&lt;br /&gt;
* the guestOS only sees resources that have been allocated to the VM [6]&lt;br /&gt;
==== three approaches ====&lt;br /&gt;
*Type I virtualization [5]&lt;br /&gt;
** runs off the physical hardware [4]&lt;br /&gt;
** Isolation of the guestOs from the hardware is done threw processe level protection meachnism[6]&lt;br /&gt;
*** ring 0 = VMM [6]&lt;br /&gt;
*** ring 1 = VM [6]&lt;br /&gt;
*** this means all instructions from the VM must go threw the VMM [6]&lt;br /&gt;
** since there can be multiple VM&#039;s on a computer the scheduling is done by the VMM [6]&lt;br /&gt;
** on boot the VMM creates a hardware platform for the VM [6]&lt;br /&gt;
** load&#039;s the VM kernel into virtual memory and then boot&#039;s it like a regular computer [6]&lt;br /&gt;
** ex. Xen [4]&lt;br /&gt;
*Type II virtualization [5]&lt;br /&gt;
** run off the host Os [4]&lt;br /&gt;
** ex. VMware , QEMU [4]&lt;br /&gt;
* Para-virtualization [6]&lt;br /&gt;
** Similar to Type but use the HostOs for Device driver access [6]&lt;br /&gt;
** Provide a virtualization that is similar to hardware [From the paper posted, no citation yet]&lt;br /&gt;
** GuestOS and Hypervisor work together to improve performance&lt;br /&gt;
&lt;br /&gt;
== Exokernel ==&lt;br /&gt;
* Micro-kernel architecture with limited abstractions, ask for resource, get resource not resource abstraction&lt;br /&gt;
* Less functionality provided by kernel, security and handling of resource sharing&lt;br /&gt;
* Once application receives resource, it can use it as it wishes/in control&lt;br /&gt;
* Keep the basic kernel to handle allocating resources and sharing rather than developing straight to the hardware&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
* multiplex resources securely providing protection to mutual distrustful application threw the use of secure binding&#039;s[1]&lt;br /&gt;
* Goal of the exokernel is to give LibOS maximum freedom with out allowing them to interfere with each other. to do this the exokernel separates protection from management in doing this it provide 3 important tasks[1]&lt;br /&gt;
** tracking ownership of resources [1]&lt;br /&gt;
** ensuring protection by guarding all resource usage and binding points (not to shure what binding points are)[1]&lt;br /&gt;
** revoking access to the resources [1]&lt;br /&gt;
* LibrayOS (LibOs)&lt;br /&gt;
** Reduces the number of kernel crossings[1]&lt;br /&gt;
** Not trusted by the exokernel so can be trusted by the application , Example given is a bad parameter passed to the LibOs only the application is affected.[1] (So LibOs cant interact with kernel ???)&lt;br /&gt;
** Any application running on the Exokernel can change the LibrayOs freely [1]&lt;br /&gt;
** Application that use LibOS that implement standard interfaces (POSIX) will be portable on any system with the same interface [1]&lt;br /&gt;
** LibOs can be made portable if it is designed to interact with a low-level machine independent level to hide hardware details [1]&lt;br /&gt;
&lt;br /&gt;
=== Exokernel Design ===&lt;br /&gt;
==== Design Principles ====&lt;br /&gt;
*Securely Expose Hardware [1]&lt;br /&gt;
** an Exokernel tries to create low level primitives that the hardware resources can be accessed from, this also includes interrupts,exceptions [1]&lt;br /&gt;
** the exokernel also export privileged instructions to the LibOS so that traditional OS abstractions can be implemented (eg Process , address pace)[1]&lt;br /&gt;
** Exokernels should avoid resource management except when required protection ( allocation , revocation , ownership)[1]&lt;br /&gt;
** application based resource management is the best way to build flexible efficient flexible systems [1]&lt;br /&gt;
*Expose allocation[1]&lt;br /&gt;
** allow LibOs to request physical resources [1]&lt;br /&gt;
** resource allocation should not be automatic, the LibOS should participate in every single allocation decision [1]&lt;br /&gt;
*Expose Names[1]&lt;br /&gt;
** Use physical name&#039;s when ever possible[3] (not to sure what physical names are, I think it is as simple as what the hardware is called)--[[User:Asoknack|Asoknack]] 20:27, 9 October 2010 (UTC)&lt;br /&gt;
** Physical names capture useful information [3]&lt;br /&gt;
*** safer than and less resource intensive than virtual names as no translations are needed[3]&lt;br /&gt;
*Expose Revocation [1]&lt;br /&gt;
** use visible revocation protocol [1]&lt;br /&gt;
** allows well behaved LibOS to preform application level resource management [1]&lt;br /&gt;
** Visible revocation allows the LibOS to choose what instance of the resource to release[1](Visible means that when revocation happens the exokernel tell the LibOS that resource is being revoked)&lt;br /&gt;
&#039;&#039;&#039; Policy &#039;&#039;&#039;&lt;br /&gt;
* LibOS handle resource policy decisions&lt;br /&gt;
* Exokernels have a policy to decided between competing LibOS (Priority , share of resources)&lt;br /&gt;
** it enforces this threw allocation and deallocation (every thing can achieved threw this even what block to write and such)&lt;br /&gt;
&lt;br /&gt;
==== Secure Bindings ====&lt;br /&gt;
* Used by the exokernel to allow the LibOS to bind to resources [1]&lt;br /&gt;
* Allows the separation of protection and resource use [1]&lt;br /&gt;
* only checks authorization during bind time [1]&lt;br /&gt;
** Application&#039;s with complex needs for resources only authorized during bind.[1]&lt;br /&gt;
* access checking is done during access time and there is no need to understand complex resources needs during access[1]&lt;br /&gt;
** (this means that the exokernel checks once to make sure an application has authorization once approved, when the application tries to use the resource the exokernel is only concerned about policy conflict&#039;s)--[[User:Asoknack|Asoknack]] 18:20, 9 October 2010 (UTC)&lt;br /&gt;
** allows the kernel to protect the resources with out understanding what the resource is [1]&lt;br /&gt;
*three way&#039;s to implement&lt;br /&gt;
* Hardware Mechanisms [1]&lt;br /&gt;
* Software caching [1]&lt;br /&gt;
* Downloading application code [1]&lt;br /&gt;
&#039;&#039;&#039; Downloading Code to the Kernel &#039;&#039;&#039;&lt;br /&gt;
* used to implement secure bindings , and improve performance[1]&lt;br /&gt;
** eliminate the number of kernel crossings [1]&lt;br /&gt;
** downloaded code can be run with out the application to be scheduled [2]&lt;br /&gt;
==== Visible Resource Revocation ====&lt;br /&gt;
* Used for most resources [1]&lt;br /&gt;
** allows for LibOS to help with deallocation [1]&lt;br /&gt;
** LibOS are able to garner what resources are scare [1]&lt;br /&gt;
* Slower than Invisible as application involvement is required [1]&lt;br /&gt;
** ex of when invisible is used is Processor addressing-context identifiers [1]&lt;br /&gt;
==== Abort Protocol ====&lt;br /&gt;
* allows the exokernel to take resources away from the LibOS [1]&lt;br /&gt;
* used when the LibOS fails to respond to the revocation request [1]&lt;br /&gt;
* Exokernel must be careful not to delete as the LibOS might need to write some system critical data to the resource [1]&lt;br /&gt;
&lt;br /&gt;
== Comparisons  ==&lt;br /&gt;
====Exokernel/Microkernel====&lt;br /&gt;
&#039;&#039;&#039;Similarities&#039;&#039;&#039;&lt;br /&gt;
* Limited functionality in kernel&lt;br /&gt;
** functionality in kernel to handle sharing of resources and security&lt;br /&gt;
** avoids programming directly to hardware which creates a dependency&lt;br /&gt;
* Additional functionality provided in user space as processes&lt;br /&gt;
&#039;&#039;&#039;Differences&#039;&#039;&#039;&lt;br /&gt;
* Minimal abstractions provided by the kernel&lt;br /&gt;
** Applications given more power in exokernel&lt;br /&gt;
&lt;br /&gt;
====Exokernel/VM====&lt;br /&gt;
&#039;&#039;&#039;Similarities&#039;&#039;&#039;&lt;br /&gt;
* Idea of partitioning resources between applications/OSs&lt;br /&gt;
* &amp;quot;Control&amp;quot; of resource given&lt;br /&gt;
* Isolation from other applications/OSs&lt;br /&gt;
&#039;&#039;&#039;Differences&#039;&#039;&#039;&lt;br /&gt;
* Exokernel runs applications, VM runs OS&lt;br /&gt;
* VM uses a hostOS and guestOSs run on top&lt;br /&gt;
* Virtualization on VMs, Exokernel deals with real resources&lt;br /&gt;
* VM hides a lot of information because it emulates. Exokernel does not.&lt;br /&gt;
&lt;br /&gt;
====Microkernel/VM====&lt;br /&gt;
&#039;&#039;&#039;Differences&#039;&#039;&#039;&lt;br /&gt;
* With a virtual machine, you are not virtualizing apps like with a microkernel but virtualizing an entire Operating System.&lt;br /&gt;
* This can be costly but the benefits are that it&#039;s easier and all the standard OS features are available.&lt;br /&gt;
&lt;br /&gt;
== References ==&lt;br /&gt;
[1]&amp;lt;nowiki&amp;gt; Engler, D. R., Kaashoek, M. F., and O&#039;Toole, J. 1995. Exokernel: an operating system architecture for application-level resource management. In Proceedings of the Fifteenth ACM Symposium on Operating Systems Principles  (Copper Mountain, Colorado, United States, December 03 - 06, 1995). M. B. Jones, Ed. SOSP &#039;95. ACM, New York, NY, 251-266. DOI= http://doi.acm.org/10.1145/224056.224076 &amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[2]&amp;lt;nowiki&amp;gt;Engler, Dawson R. &amp;quot;The Exokernel Operating System Architecture.&amp;quot; Diss. Massachusetts Institute of Technology, Dept. of Electrical Engineering and Computer Science, 1998. Web. 9 Oct. 2010. &amp;lt;http://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.61.5054&amp;amp;rep=rep1&amp;amp;type=pdf&amp;gt;.&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[3]&amp;lt;nowiki&amp;gt;Kaashoek, M. F., Engler, D. R., Ganger, G. R., Briceño, H. M., Hunt, R., Mazières, D., Pinckney, T., Grimm, R., Jannotti, J., and Mackenzie, K. 1997. Application performance and flexibility on exokernel systems. In Proceedings of the Sixteenth ACM Symposium on Operating Systems Principles  (Saint Malo, France, October 05 - 08, 1997). W. M. Waite, Ed. SOSP &#039;97. ACM, New York, NY, 52-65. DOI= http://doi.acm.org/10.1145/268998.266644 &amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[4]&amp;lt;nowiki&amp;gt;Vallee, G.; Naughton, T.; Engelmann, C.; Hong Ong; Scott, S.L.; , &amp;quot;System-Level Virtualization for High Performance Computing,&amp;quot; Parallel, Distributed and Network-Based Processing, 2008. PDP 2008. 16th Euromicro Conference on , vol., no., pp.636-643, 13-15 Feb. 2008&lt;br /&gt;
DOI= http://doi.acm.org/10.1109/PDP.2008.85 &amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[5]&amp;lt;nowiki&amp;gt;Goldberg, R. P. 1973. Architecture of virtual machines. In Proceedings of the Workshop on Virtual Computer Systems  (Cambridge, Massachusetts, United States, March 26 - 27, 1973). ACM, New York, NY, 74-112. DOI= http://doi.acm.org/10.1145/800122.803950 &amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[6]&amp;lt;nowiki&amp;gt;Vallee, G., Naughton, T., and Scott, S. L. 2007. System management software for virtual environments. In Proceedings of the 4th international Conference on Computing Frontiers (Ischia, Italy, May 07 - 09, 2007). CF &#039;07. ACM, New York, NY, 153-160. DOI= http://doi.acm.org/10.1145/1242531.1242555 &amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[7]&amp;lt;nowiki&amp;gt;Liedtke, J. 1995. On micro-kernel construction. In Proceedings of the Fifteenth ACM Symposium on Operating Systems Principles  (Copper Mountain, Colorado, United States, December 03 - 06, 1995). M. B. Jones, Ed. SOSP &#039;95. ACM, New York, NY, 237-250. DOI= http://doi.acm.org/10.1145/224056.224075 &amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Unsorted ==&lt;br /&gt;
An overview of exokernels,virtual machines, microkernels *[http://www2.supchurch.org:10999/files/school/classes/CSCI4730/Lectures/grad-structures.ppt Overview](Power Point)&amp;lt;br&amp;gt;&lt;br /&gt;
Should not be used as a source but an overview.&lt;br /&gt;
&lt;br /&gt;
The original paper on [http://portal.acm.org/citation.cfm?id=224076 Exokernels] --[[User:Gautam|Gautam]] 22:39, 6 October 2010 (UTC)&lt;br /&gt;
&lt;br /&gt;
Exokernel-&lt;br /&gt;
Minimalistic abstractions for developers&lt;br /&gt;
Exokernels can be seen as a good compromise between virtual machines and microkernels in the sense that exokernels can give that low level access to developers similar to direct access through a protected layer and at the same time can contain enough hardware abstraction to allow similar benefit of hiding the hardware resources to application programs.&lt;br /&gt;
Exokernel – fewest hardware abstractions to developer&lt;br /&gt;
Microkernel - is the near-minimum amount of software that can provide the mechanisms needed to implement an operating system&lt;br /&gt;
Virtual machine is a simulation of any or devices requested by an application program&lt;br /&gt;
Exokenel – I’ve got a sound card&lt;br /&gt;
Virtual Machine – I’ve got the sound card you’re looking for, perfect virtual match&lt;br /&gt;
Microkernel – I’ve got sound card that plays Khazikstan sound format only&lt;br /&gt;
MicroKernel - Very small, very predictable, good for schedualing (QNX is a microkernel - POSIX compatable, benefits of running linux software like modern browsers) &lt;br /&gt;
&lt;br /&gt;
This is some ideas I&#039;ve got on this question, please contribute below&lt;br /&gt;
-Rovic&lt;br /&gt;
&lt;br /&gt;
Outlining some main features here as I see them.&lt;br /&gt;
&lt;br /&gt;
I found that the exokernel was an even lower-level design than the microkernel, closer to the hardware without abstraction. They have the same architecture with the basic functionality contained in the kernel to manage everyone. As the exokernel &amp;quot;gives&amp;quot; the resource to the application it can use the resource in isolation of other applications (until forced to shared) much like VMs receive their resources, either partitioned or virtualized, and execute as if its running on its own machine. There is this similar notion of partitioning the resources among applications/OS and allowing them to take control of what they have. &lt;br /&gt;
&lt;br /&gt;
I&#039;ll locate some references later on. --[[User:Slay|Slay]] 15:00, 7 October 2010 (UTC)&lt;br /&gt;
&lt;br /&gt;
I&#039;m just going to post my answer for question 1 on the individuel assignment and hope it helps. --[[User:Aellebla|Aellebla]] 15:06, 12 October 2010 (UTC)&lt;br /&gt;
&lt;br /&gt;
The design of the micro kernel was to take everything they could out of the Kernel and put it into a process. For ex, networking would be put into a process instead of staying in the kernel. The micro kernel dev&#039;s tried to keep lots of things in user space for efficiency. But one major problem with this is there would be a large amount of moving from a process to the kernel to user space and back again and this is a costly, non efficient process.It was an application specific OS, there was no multiplexing. With a virtual machine you are not virtualizing apps like with a microkernel but virtualizing an entire Operating System. This is very heavy however but the benefits are that it‟s easy and all the standard OS features are there whereas in a microkernel setup they would not all be there and this can be seen as a compromise.&lt;br /&gt;
&lt;br /&gt;
Exokernels can be seen as a compromise to virtual machines and microkernels because virtual machines emulate and exokernels do not. When you emulate something you hide a lot of the actual information because you wouldn‟t be able to see the „real‟ hardware. If we look at a virtual box setup running Linux, and we go look at all the hardware, it will be displayed as fake hardware.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Maybe we can have an introduction - paragraph or so on each type - then similarities - differences - and the compromise.  I am going to do some research and writing this weekend and I will put some up  -- Jslonosky&lt;br /&gt;
&lt;br /&gt;
btw in my page (i guess you can call it that) i have some resources i have found  --[[User:Asoknack|Asoknack]] 15:50, 8 October 2010 (UTC)&lt;br /&gt;
- Wow, nice man. I will go ahead and write up the descriptive paragraphs on each kernel and virtual machine if no one minds. --Jslonosky&lt;br /&gt;
&lt;br /&gt;
I think we should divide up the paragraphs and proofread each others instead. (Are there only 4 of us?) I don&#039;t have much time to work on this today though but I&#039;ll try to work on it tomorrow morning. - Slay&lt;br /&gt;
&lt;br /&gt;
Sure guy.  That sounds good.  There should be 5 or 6 of us though.. . Oh well. Their loss.  I will do some before or after work today. Ill start with Microkernel since there is not a large amount of info here, and so we don&#039;t overlap each other - JSlonosky&lt;br /&gt;
&lt;br /&gt;
yeah i think there was more like 7 of us btw if any one has any more information feel free to add it would be nice if you add the references so that way citing is really easy on  acm.org it will auto give you the citation info (where it says Display Formats click on ACM Ref  and new window with the citation info auto pop&#039;s up) --[[User:Asoknack|Asoknack]] 02:28, 11 October 2010 (UTC)&lt;br /&gt;
&lt;br /&gt;
I added an outline of the similarities and differences. Add any more that I missed. These are from observations so I don&#039;t have any resources. -Slay&lt;br /&gt;
That&#039;s probably fine.  Our textbook probably outlines some of them, so I am sure we can find a few there - JSlonosky&lt;br /&gt;
&lt;br /&gt;
Talked to the teacher today and for VM he said we should focus on the implementation such as Xen and VMware , he also said to talk about para virtualization --[[User:Asoknack|Asoknack]] 18:42, 12 October 2010 (UTC)&lt;br /&gt;
&lt;br /&gt;
A paper about emulation and paravirtualization [http://portal.acm.org/citation.cfm?id=1189289&amp;amp;coll=GUIDE&amp;amp;dl=GUIDE&amp;amp;CFID=105648137&amp;amp;CFTOKEN=47153176&amp;amp;ret=1#Fulltext link] - Slay&lt;br /&gt;
&lt;br /&gt;
Oh no big words.  Sorry about the Microkernels not done yet.  Working on an outline now.  Finally found how to access the ACM through carleton.  Gawd. &lt;br /&gt;
I am planning an outline, quick bit about kernels in general, (maybe mention monolith kernels?), and what microkernels do.&lt;br /&gt;
I see the microkernel outline info and a reference ( Whomever did that == hero: true) about the scheduling and the Memory management.  Should that be included in kernels in general and then mention what microkernels build upon/change? - JSlonosky&lt;br /&gt;
&lt;br /&gt;
Sorry late to the party here. My mistake was not checking the discussion page when I checked in. I don&#039;t want to trample anyone&#039;s current work but I don&#039;t see any work on the final essay done. I would love to help just need to know where I can step in so as to not screw anyone else up. -- [[User:Cling|Cling]]&lt;br /&gt;
&lt;br /&gt;
I don&#039;t think I&#039;ll be able to write up something for the final essay, even though I suggested splitting it. I&#039;ll do research tonight though on the paravirtualization. If I find the time, I&#039;ll try to write something. Sorry about that. --[[User:Slay|Slay]] 21:52, 13 October 2010 (UTC)&lt;br /&gt;
&lt;br /&gt;
We all have 3004 to do too, man.  I do not think anyone has chosen to do Virtual Machine section yet, or the Exokernel itself. But the contrast paragraph and the intro is chosen, and intro is done.  Microkernel and kernel will be done in a hour I hope. -- JSlonosky&lt;br /&gt;
&lt;br /&gt;
I can attempt to write up anything, the issue is I don&#039;t have any context on what to write, how do I tie it in to the rest of the essay? I only have a Japanese Quiz tomorrow morning then I should be good to write anything up for the rest of the day. As someone who has already written part of the essay, and assuming I attempt the exokernel section, how much do you think I should write? Should it just be about exokernel or should there be comparisons to the other topics? Thanks --[[User:Cling|Cling]] 23:14, 13 October 2010 (UTC)&lt;br /&gt;
&lt;br /&gt;
Go with the Exokernel itself.  Slade is getting off work in a hour and we can double check what he is doing then.  We can put it together tomorrow sometime, and fill in the other stuff. - JSLonosky&lt;br /&gt;
&lt;br /&gt;
I&#039;ll attempt to work on VM tonight, then. I would feel so bad if I didn&#039;t write anything. -Slay&lt;br /&gt;
&lt;br /&gt;
== The Essay ==&lt;br /&gt;
&lt;br /&gt;
Let&#039;s actually breakdown the essay into components then write it here.&lt;br /&gt;
&lt;br /&gt;
I&#039;d like to go along the premise that microkernels and and virtual machines are &amp;quot;weaker&amp;quot; than exokernels in design for the essay. If anyone has any objections, add it here. &lt;br /&gt;
&lt;br /&gt;
-Slade&lt;br /&gt;
&lt;br /&gt;
 what do you mean by &amp;quot;weaker&amp;quot;(i think you mean exokernels&#039; takes the best of both worlds ) --[[User:Asoknack|Asoknack]] 02:45, 13 October 2010 (UTC)&lt;br /&gt;
&lt;br /&gt;
We have our intro/thesis statement&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
...to the extent that exokernels be seen as a compromise between virtual machines and microkernels. &lt;br /&gt;
-I&#039;ll work on the initial intro, should have it ready by tonight. -Slade&lt;br /&gt;
&lt;br /&gt;
3 paragraphs that prove it&lt;br /&gt;
Explain how the key design characteristics of these three system architectures compare with each other. &lt;br /&gt;
&lt;br /&gt;
and conclusion&lt;/div&gt;</summary>
		<author><name>Slay</name></author>
	</entry>
	<entry>
		<id>https://homeostasis.scs.carleton.ca/wiki/index.php?title=Talk:COMP_3000_Essay_1_2010_Question_1&amp;diff=3367</id>
		<title>Talk:COMP 3000 Essay 1 2010 Question 1</title>
		<link rel="alternate" type="text/html" href="https://homeostasis.scs.carleton.ca/wiki/index.php?title=Talk:COMP_3000_Essay_1_2010_Question_1&amp;diff=3367"/>
		<updated>2010-10-13T21:52:24Z</updated>

		<summary type="html">&lt;p&gt;Slay: /* Unsorted */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Microkernel == &lt;br /&gt;
* Moving kernel functionality into processes contained in user space, e.g. file systems, drivers&lt;br /&gt;
* Keep basic functionality in kernel to handle sharing of resources&lt;br /&gt;
* Separation allows for manageability and security, corruption in one does not necessarily cause failure in system&lt;br /&gt;
* Large amount of moving from a process to Kernel to user space and back again, this is a costly operation.&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039; Microkernel &#039;&#039;&#039;&lt;br /&gt;
* try&#039;s to minimize the amount of software that is mandatory or required [7]&lt;br /&gt;
advantages of Microkernel&lt;br /&gt;
* favors a modular system structure [7]&lt;br /&gt;
* one failure of a program does not impact any other programs [7]&lt;br /&gt;
* can support more than one api or strategies since all programs are separated [7]&lt;br /&gt;
==== Microkernel Concepts ==== &lt;br /&gt;
* piece of code is allowed in the kernel only if moving it outside the kernel would adversely affect the system. [7]&lt;br /&gt;
* any subsystem program created must be independent of all other subsystem&#039;s, any subsystem that is used can guarantee this from all other subsystems [7]&lt;br /&gt;
===== Address Space =====&lt;br /&gt;
* a mapping that relates the physical page to the virtual page. [7]&lt;br /&gt;
* processor specific [7]&lt;br /&gt;
* hide&#039;s the hardware&#039;s concept of address space [7]&lt;br /&gt;
* based off the idea of recursion each subsystem has it&#039;s own address space [7]&lt;br /&gt;
* the micro kernel provides 3 operations [7]&lt;br /&gt;
** Grant [7]&lt;br /&gt;
*** allows the owner to give a page to a recipient, provided the recipient want&#039;s it the page is removed from the owner&#039;s address space and but in the recipients. [7]&lt;br /&gt;
*** must be available to the owner. [7]&lt;br /&gt;
** Map [7]&lt;br /&gt;
*** allows the user to share a page with a recipient [7]&lt;br /&gt;
*** page is not removed from the owner&#039;s address space. [7]&lt;br /&gt;
** Flush [7]&lt;br /&gt;
*** remove&#039;s the page from all recipients address space [7]&lt;br /&gt;
*** how does this work with Grant --[[User:Asoknack|Asoknack]] 19:10, 12 October 2010 (UTC)&lt;br /&gt;
* allows memory management and paging out side the kernel&lt;br /&gt;
* Map and flush is required for memory manger&#039;s and pagers [7]&lt;br /&gt;
* can be used to implement access right&#039;s [7]&lt;br /&gt;
* controlling I/O Right&#039;s and driver&#039;s are not done at kernel level [7]&lt;br /&gt;
&lt;br /&gt;
===== Thread&#039;s IPC =====&lt;br /&gt;
* Threads&lt;br /&gt;
** in the kernel [7]&lt;br /&gt;
** Since a thread has an address space , all changes to the thread need to be done by the kernel [7]&lt;br /&gt;
* IPC [7]&lt;br /&gt;
** in the kernel IPC&lt;br /&gt;
** grant and map also need IPC  (So buye the priciple above this has to be in the kernel)[7]&lt;br /&gt;
** basic way for sub process to communicate. [7]&lt;br /&gt;
* Interrupts&lt;br /&gt;
** partially in the kernel [7]&lt;br /&gt;
** hard ware is a set of thread&#039;s which are empty except for there unique sender id [7]&lt;br /&gt;
** transformation of the message to the interrupt is done in the kernel [7]&lt;br /&gt;
** the kernel is not involved in device - specific interrupt&#039;s and does not understand the interrupt. [7]&lt;br /&gt;
*** resting the interrupt is done at user level [7]&lt;br /&gt;
** if a privileged command is need it is done implicitly the next time an IPC command is sent from the device [7]&lt;br /&gt;
&lt;br /&gt;
===== Unique Identifiers =====&lt;br /&gt;
&lt;br /&gt;
== Virtual Machine ==&lt;br /&gt;
* Partitioning or virtualizing resources among OS virtualization running on top of host OS&lt;br /&gt;
* Virtualized OS believe running on full machine on its own&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
System Level Virtualization&lt;br /&gt;
&lt;br /&gt;
=== VMM ===&lt;br /&gt;
* stands for Virtual Machine Monitor, also known as the hyper-visor[4]&lt;br /&gt;
* responsible for virtualization of hardware(mapping physical to virtual) and the VM that run on top of the virtuallized hardware [4]&lt;br /&gt;
* usually a small os with no drivers , so it is coupled with a linux distro that provides device / hardware access [4]&lt;br /&gt;
** the os that the VMM is using for driver&#039;s is called the hostOS [6]&lt;br /&gt;
*the hostOS provides login and physical access to the hardware as well as management for the VMM [6]&lt;br /&gt;
=== VM ===&lt;br /&gt;
* the OS that the vm is running is called the guestOS [6]&lt;br /&gt;
* the guestOS only sees resources that have been allocated to the VM [6]&lt;br /&gt;
==== three approaches ====&lt;br /&gt;
*Type I virtualization [5]&lt;br /&gt;
** runs off the physical hardware [4]&lt;br /&gt;
** Isolation of the guestOs from the hardware is done threw processe level protection meachnism[6]&lt;br /&gt;
*** ring 0 = VMM [6]&lt;br /&gt;
*** ring 1 = VM [6]&lt;br /&gt;
*** this means all instructions from the VM must go threw the VMM [6]&lt;br /&gt;
** since there can be multiple VM&#039;s on a computer the scheduling is done by the VMM [6]&lt;br /&gt;
** on boot the VMM creates a hardware platform for the VM [6]&lt;br /&gt;
** load&#039;s the VM kernel into virtual memory and then boot&#039;s it like a regular computer [6]&lt;br /&gt;
** ex. Xen [4]&lt;br /&gt;
*Type II virtualization [5]&lt;br /&gt;
** run off the host Os [4]&lt;br /&gt;
** ex. VMware , QEMU [4]&lt;br /&gt;
* Para-virtualization [6]&lt;br /&gt;
** Similar to Type but use the HostOs for Device driver access [6]&lt;br /&gt;
** Provide a virtualization that is similar to hardware [From the paper posted, no citation yet]&lt;br /&gt;
** GuestOS and Hypervisor work together to improve performance&lt;br /&gt;
&lt;br /&gt;
== Exokernel ==&lt;br /&gt;
* Micro-kernel architecture with limited abstractions, ask for resource, get resource not resource abstraction&lt;br /&gt;
* Less functionality provided by kernel, security and handling of resource sharing&lt;br /&gt;
* Once application receives resource, it can use it as it wishes/in control&lt;br /&gt;
* Keep the basic kernel to handle allocating resources and sharing rather than developing straight to the hardware&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
* multiplex resources securely providing protection to mutual distrustful application threw the use of secure binding&#039;s[1]&lt;br /&gt;
* Goal of the exokernel is to give LibOS maximum freedom with out allowing them to interfere with each other. to do this the exokernel separates protection from management in doing this it provide 3 important tasks[1]&lt;br /&gt;
** tracking ownership of resources [1]&lt;br /&gt;
** ensuring protection by guarding all resource usage and binding points (not to shure what binding points are)[1]&lt;br /&gt;
** revoking access to the resources [1]&lt;br /&gt;
* LibrayOS (LibOs)&lt;br /&gt;
** Reduces the number of kernel crossings[1]&lt;br /&gt;
** Not trusted by the exokernel so can be trusted by the application , Example given is a bad parameter passed to the LibOs only the application is affected.[1] (So LibOs cant interact with kernel ???)&lt;br /&gt;
** Any application running on the Exokernel can change the LibrayOs freely [1]&lt;br /&gt;
** Application that use LibOS that implement standard interfaces (POSIX) will be portable on any system with the same interface [1]&lt;br /&gt;
** LibOs can be made portable if it is designed to interact with a low-level machine independent level to hide hardware details [1]&lt;br /&gt;
&lt;br /&gt;
=== Exokernel Design ===&lt;br /&gt;
==== Design Principles ====&lt;br /&gt;
*Securely Expose Hardware [1]&lt;br /&gt;
** an Exokernel tries to create low level primitives that the hardware resources can be accessed from, this also includes interrupts,exceptions [1]&lt;br /&gt;
** the exokernel also export privileged instructions to the LibOS so that traditional OS abstractions can be implemented (eg Process , address pace)[1]&lt;br /&gt;
** Exokernels should avoid resource management except when required protection ( allocation , revocation , ownership)[1]&lt;br /&gt;
** application based resource management is the best way to build flexible efficient flexible systems [1]&lt;br /&gt;
*Expose allocation[1]&lt;br /&gt;
** allow LibOs to request physical resources [1]&lt;br /&gt;
** resource allocation should not be automatic, the LibOS should participate in every single allocation decision [1]&lt;br /&gt;
*Expose Names[1]&lt;br /&gt;
** Use physical name&#039;s when ever possible[3] (not to sure what physical names are, I think it is as simple as what the hardware is called)--[[User:Asoknack|Asoknack]] 20:27, 9 October 2010 (UTC)&lt;br /&gt;
** Physical names capture useful information [3]&lt;br /&gt;
*** safer than and less resource intensive than virtual names as no translations are needed[3]&lt;br /&gt;
*Expose Revocation [1]&lt;br /&gt;
** use visible revocation protocol [1]&lt;br /&gt;
** allows well behaved LibOS to preform application level resource management [1]&lt;br /&gt;
** Visible revocation allows the LibOS to choose what instance of the resource to release[1](Visible means that when revocation happens the exokernel tell the LibOS that resource is being revoked)&lt;br /&gt;
&#039;&#039;&#039; Policy &#039;&#039;&#039;&lt;br /&gt;
* LibOS handle resource policy decisions&lt;br /&gt;
* Exokernels have a policy to decided between competing LibOS (Priority , share of resources)&lt;br /&gt;
** it enforces this threw allocation and deallocation (every thing can achieved threw this even what block to write and such)&lt;br /&gt;
&lt;br /&gt;
==== Secure Bindings ====&lt;br /&gt;
* Used by the exokernel to allow the LibOS to bind to resources [1]&lt;br /&gt;
* Allows the separation of protection and resource use [1]&lt;br /&gt;
* only checks authorization during bind time [1]&lt;br /&gt;
** Application&#039;s with complex needs for resources only authorized during bind.[1]&lt;br /&gt;
* access checking is done during access time and there is no need to understand complex resources needs during access[1]&lt;br /&gt;
** (this means that the exokernel checks once to make sure an application has authorization once approved, when the application tries to use the resource the exokernel is only concerned about policy conflict&#039;s)--[[User:Asoknack|Asoknack]] 18:20, 9 October 2010 (UTC)&lt;br /&gt;
** allows the kernel to protect the resources with out understanding what the resource is [1]&lt;br /&gt;
*three way&#039;s to implement&lt;br /&gt;
* Hardware Mechanisms [1]&lt;br /&gt;
* Software caching [1]&lt;br /&gt;
* Downloading application code [1]&lt;br /&gt;
&#039;&#039;&#039; Downloading Code to the Kernel &#039;&#039;&#039;&lt;br /&gt;
* used to implement secure bindings , and improve performance[1]&lt;br /&gt;
** eliminate the number of kernel crossings [1]&lt;br /&gt;
** downloaded code can be run with out the application to be scheduled [2]&lt;br /&gt;
==== Visible Resource Revocation ====&lt;br /&gt;
* Used for most resources [1]&lt;br /&gt;
** allows for LibOS to help with deallocation [1]&lt;br /&gt;
** LibOS are able to garner what resources are scare [1]&lt;br /&gt;
* Slower than Invisible as application involvement is required [1]&lt;br /&gt;
** ex of when invisible is used is Processor addressing-context identifiers [1]&lt;br /&gt;
==== Abort Protocol ====&lt;br /&gt;
* allows the exokernel to take resources away from the LibOS [1]&lt;br /&gt;
* used when the LibOS fails to respond to the revocation request [1]&lt;br /&gt;
* Exokernel must be careful not to delete as the LibOS might need to write some system critical data to the resource [1]&lt;br /&gt;
&lt;br /&gt;
== Comparisons  ==&lt;br /&gt;
====Exokernel/Microkernel====&lt;br /&gt;
&#039;&#039;&#039;Similarities&#039;&#039;&#039;&lt;br /&gt;
* Limited functionality in kernel&lt;br /&gt;
** functionality in kernel to handle sharing of resources and security&lt;br /&gt;
** avoids programming directly to hardware which creates a dependency&lt;br /&gt;
* Additional functionality provided in user space as processes&lt;br /&gt;
&#039;&#039;&#039;Differences&#039;&#039;&#039;&lt;br /&gt;
* Minimal abstractions provided by the kernel&lt;br /&gt;
** Applications given more power in exokernel&lt;br /&gt;
&lt;br /&gt;
====Exokernel/VM====&lt;br /&gt;
&#039;&#039;&#039;Similarities&#039;&#039;&#039;&lt;br /&gt;
* Idea of partitioning resources between applications/OSs&lt;br /&gt;
* &amp;quot;Control&amp;quot; of resource given&lt;br /&gt;
* Isolation from other applications/OSs&lt;br /&gt;
&#039;&#039;&#039;Differences&#039;&#039;&#039;&lt;br /&gt;
* Exokernel runs applications, VM runs OS&lt;br /&gt;
* VM uses a hostOS and guestOSs run on top&lt;br /&gt;
* Virtualization on VMs, Exokernel deals with real resources&lt;br /&gt;
* VM hides a lot of information because it emulates. Exokernel does not.&lt;br /&gt;
&lt;br /&gt;
====Microkernel/VM====&lt;br /&gt;
&#039;&#039;&#039;Differences&#039;&#039;&#039;&lt;br /&gt;
* With a virtual machine, you are not virtualizing apps like with a microkernel but virtualizing an entire Operating System.&lt;br /&gt;
* This can be costly but the benefits are that it&#039;s easier and all the standard OS features are available.&lt;br /&gt;
&lt;br /&gt;
== References ==&lt;br /&gt;
[1]&amp;lt;nowiki&amp;gt; Engler, D. R., Kaashoek, M. F., and O&#039;Toole, J. 1995. Exokernel: an operating system architecture for application-level resource management. In Proceedings of the Fifteenth ACM Symposium on Operating Systems Principles  (Copper Mountain, Colorado, United States, December 03 - 06, 1995). M. B. Jones, Ed. SOSP &#039;95. ACM, New York, NY, 251-266. DOI= http://doi.acm.org/10.1145/224056.224076 &amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[2]&amp;lt;nowiki&amp;gt;Engler, Dawson R. &amp;quot;The Exokernel Operating System Architecture.&amp;quot; Diss. Massachusetts Institute of Technology, Dept. of Electrical Engineering and Computer Science, 1998. Web. 9 Oct. 2010. &amp;lt;http://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.61.5054&amp;amp;rep=rep1&amp;amp;type=pdf&amp;gt;.&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[3]&amp;lt;nowiki&amp;gt;Kaashoek, M. F., Engler, D. R., Ganger, G. R., Briceño, H. M., Hunt, R., Mazières, D., Pinckney, T., Grimm, R., Jannotti, J., and Mackenzie, K. 1997. Application performance and flexibility on exokernel systems. In Proceedings of the Sixteenth ACM Symposium on Operating Systems Principles  (Saint Malo, France, October 05 - 08, 1997). W. M. Waite, Ed. SOSP &#039;97. ACM, New York, NY, 52-65. DOI= http://doi.acm.org/10.1145/268998.266644 &amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[4]&amp;lt;nowiki&amp;gt;Vallee, G.; Naughton, T.; Engelmann, C.; Hong Ong; Scott, S.L.; , &amp;quot;System-Level Virtualization for High Performance Computing,&amp;quot; Parallel, Distributed and Network-Based Processing, 2008. PDP 2008. 16th Euromicro Conference on , vol., no., pp.636-643, 13-15 Feb. 2008&lt;br /&gt;
DOI= http://doi.acm.org/10.1109/PDP.2008.85 &amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[5]&amp;lt;nowiki&amp;gt;Goldberg, R. P. 1973. Architecture of virtual machines. In Proceedings of the Workshop on Virtual Computer Systems  (Cambridge, Massachusetts, United States, March 26 - 27, 1973). ACM, New York, NY, 74-112. DOI= http://doi.acm.org/10.1145/800122.803950 &amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[6]&amp;lt;nowiki&amp;gt;Vallee, G., Naughton, T., and Scott, S. L. 2007. System management software for virtual environments. In Proceedings of the 4th international Conference on Computing Frontiers (Ischia, Italy, May 07 - 09, 2007). CF &#039;07. ACM, New York, NY, 153-160. DOI= http://doi.acm.org/10.1145/1242531.1242555 &amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[7]&amp;lt;nowiki&amp;gt;Liedtke, J. 1995. On micro-kernel construction. In Proceedings of the Fifteenth ACM Symposium on Operating Systems Principles  (Copper Mountain, Colorado, United States, December 03 - 06, 1995). M. B. Jones, Ed. SOSP &#039;95. ACM, New York, NY, 237-250. DOI= http://doi.acm.org/10.1145/224056.224075 &amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Unsorted ==&lt;br /&gt;
An overview of exokernels,virtual machines, microkernels *[http://www2.supchurch.org:10999/files/school/classes/CSCI4730/Lectures/grad-structures.ppt Overview](Power Point)&amp;lt;br&amp;gt;&lt;br /&gt;
Should not be used as a source but an overview.&lt;br /&gt;
&lt;br /&gt;
The original paper on [http://portal.acm.org/citation.cfm?id=224076 Exokernels] --[[User:Gautam|Gautam]] 22:39, 6 October 2010 (UTC)&lt;br /&gt;
&lt;br /&gt;
Exokernel-&lt;br /&gt;
Minimalistic abstractions for developers&lt;br /&gt;
Exokernels can be seen as a good compromise between virtual machines and microkernels in the sense that exokernels can give that low level access to developers similar to direct access through a protected layer and at the same time can contain enough hardware abstraction to allow similar benefit of hiding the hardware resources to application programs.&lt;br /&gt;
Exokernel – fewest hardware abstractions to developer&lt;br /&gt;
Microkernel - is the near-minimum amount of software that can provide the mechanisms needed to implement an operating system&lt;br /&gt;
Virtual machine is a simulation of any or devices requested by an application program&lt;br /&gt;
Exokenel – I’ve got a sound card&lt;br /&gt;
Virtual Machine – I’ve got the sound card you’re looking for, perfect virtual match&lt;br /&gt;
Microkernel – I’ve got sound card that plays Khazikstan sound format only&lt;br /&gt;
MicroKernel - Very small, very predictable, good for schedualing (QNX is a microkernel - POSIX compatable, benefits of running linux software like modern browsers) &lt;br /&gt;
&lt;br /&gt;
This is some ideas I&#039;ve got on this question, please contribute below&lt;br /&gt;
-Rovic&lt;br /&gt;
&lt;br /&gt;
Outlining some main features here as I see them.&lt;br /&gt;
&lt;br /&gt;
I found that the exokernel was an even lower-level design than the microkernel, closer to the hardware without abstraction. They have the same architecture with the basic functionality contained in the kernel to manage everyone. As the exokernel &amp;quot;gives&amp;quot; the resource to the application it can use the resource in isolation of other applications (until forced to shared) much like VMs receive their resources, either partitioned or virtualized, and execute as if its running on its own machine. There is this similar notion of partitioning the resources among applications/OS and allowing them to take control of what they have. &lt;br /&gt;
&lt;br /&gt;
I&#039;ll locate some references later on. --[[User:Slay|Slay]] 15:00, 7 October 2010 (UTC)&lt;br /&gt;
&lt;br /&gt;
I&#039;m just going to post my answer for question 1 on the individuel assignment and hope it helps. --[[User:Aellebla|Aellebla]] 15:06, 12 October 2010 (UTC)&lt;br /&gt;
&lt;br /&gt;
The design of the micro kernel was to take everything they could out of the Kernel and put it into a process. For ex, networking would be put into a process instead of staying in the kernel. The micro kernel dev&#039;s tried to keep lots of things in user space for efficiency. But one major problem with this is there would be a large amount of moving from a process to the kernel to user space and back again and this is a costly, non efficient process.It was an application specific OS, there was no multiplexing. With a virtual machine you are not virtualizing apps like with a microkernel but virtualizing an entire Operating System. This is very heavy however but the benefits are that it‟s easy and all the standard OS features are there whereas in a microkernel setup they would not all be there and this can be seen as a compromise.&lt;br /&gt;
&lt;br /&gt;
Exokernels can be seen as a compromise to virtual machines and microkernels because virtual machines emulate and exokernels do not. When you emulate something you hide a lot of the actual information because you wouldn‟t be able to see the „real‟ hardware. If we look at a virtual box setup running Linux, and we go look at all the hardware, it will be displayed as fake hardware.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Maybe we can have an introduction - paragraph or so on each type - then similarities - differences - and the compromise.  I am going to do some research and writing this weekend and I will put some up  -- Jslonosky&lt;br /&gt;
&lt;br /&gt;
btw in my page (i guess you can call it that) i have some resources i have found  --[[User:Asoknack|Asoknack]] 15:50, 8 October 2010 (UTC)&lt;br /&gt;
- Wow, nice man. I will go ahead and write up the descriptive paragraphs on each kernel and virtual machine if no one minds. --Jslonosky&lt;br /&gt;
&lt;br /&gt;
I think we should divide up the paragraphs and proofread each others instead. (Are there only 4 of us?) I don&#039;t have much time to work on this today though but I&#039;ll try to work on it tomorrow morning. - Slay&lt;br /&gt;
&lt;br /&gt;
Sure guy.  That sounds good.  There should be 5 or 6 of us though.. . Oh well. Their loss.  I will do some before or after work today. Ill start with Microkernel since there is not a large amount of info here, and so we don&#039;t overlap each other - JSlonosky&lt;br /&gt;
&lt;br /&gt;
yeah i think there was more like 7 of us btw if any one has any more information feel free to add it would be nice if you add the references so that way citing is really easy on  acm.org it will auto give you the citation info (where it says Display Formats click on ACM Ref  and new window with the citation info auto pop&#039;s up) --[[User:Asoknack|Asoknack]] 02:28, 11 October 2010 (UTC)&lt;br /&gt;
&lt;br /&gt;
I added an outline of the similarities and differences. Add any more that I missed. These are from observations so I don&#039;t have any resources. -Slay&lt;br /&gt;
That&#039;s probably fine.  Our textbook probably outlines some of them, so I am sure we can find a few there - JSlonosky&lt;br /&gt;
&lt;br /&gt;
Talked to the teacher today and for VM he said we should focus on the implementation such as Xen and VMware , he also said to talk about para virtualization --[[User:Asoknack|Asoknack]] 18:42, 12 October 2010 (UTC)&lt;br /&gt;
&lt;br /&gt;
A paper about emulation and paravirtualization [http://portal.acm.org/citation.cfm?id=1189289&amp;amp;coll=GUIDE&amp;amp;dl=GUIDE&amp;amp;CFID=105648137&amp;amp;CFTOKEN=47153176&amp;amp;ret=1#Fulltext link] - Slay&lt;br /&gt;
&lt;br /&gt;
Oh no big words.  Sorry about the Microkernels not done yet.  Working on an outline now.  Finally found how to access the ACM through carleton.  Gawd. &lt;br /&gt;
I am planning an outline, quick bit about kernels in general, (maybe mention monolith kernels?), and what microkernels do.&lt;br /&gt;
I see the microkernel outline info and a reference ( Whomever did that == hero: true) about the scheduling and the Memory management.  Should that be included in kernels in general and then mention what microkernels build upon/change? - JSlonosky&lt;br /&gt;
&lt;br /&gt;
Sorry late to the party here. My mistake was not checking the discussion page when I checked in. I don&#039;t want to trample anyone&#039;s current work but I don&#039;t see any work on the final essay done. I would love to help just need to know where I can step in so as to not screw anyone else up. -- [[User:Cling|Cling]]&lt;br /&gt;
&lt;br /&gt;
I don&#039;t think I&#039;ll be able to write up something for the final essay, even though I suggested splitting it. I&#039;ll do research tonight though on the paravirtualization. If I find the time, I&#039;ll try to write something. Sorry about that. --[[User:Slay|Slay]] 21:52, 13 October 2010 (UTC)&lt;br /&gt;
&lt;br /&gt;
== The Essay ==&lt;br /&gt;
&lt;br /&gt;
Let&#039;s actually breakdown the essay into components then write it here.&lt;br /&gt;
&lt;br /&gt;
I&#039;d like to go along the premise that microkernels and and virtual machines are &amp;quot;weaker&amp;quot; than exokernels in design for the essay. If anyone has any objections, add it here. &lt;br /&gt;
&lt;br /&gt;
-Slade&lt;br /&gt;
&lt;br /&gt;
 what do you mean by &amp;quot;weaker&amp;quot;(i think you mean exokernels&#039; takes the best of both worlds ) --[[User:Asoknack|Asoknack]] 02:45, 13 October 2010 (UTC)&lt;br /&gt;
&lt;br /&gt;
We have our intro/thesis statement&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
...to the extent that exokernels be seen as a compromise between virtual machines and microkernels. &lt;br /&gt;
-I&#039;ll work on the initial intro, should have it ready by tonight. -Slade&lt;br /&gt;
&lt;br /&gt;
3 paragraphs that prove it&lt;br /&gt;
Explain how the key design characteristics of these three system architectures compare with each other. &lt;br /&gt;
&lt;br /&gt;
and conclusion&lt;/div&gt;</summary>
		<author><name>Slay</name></author>
	</entry>
	<entry>
		<id>https://homeostasis.scs.carleton.ca/wiki/index.php?title=Talk:COMP_3000_Essay_1_2010_Question_1&amp;diff=3365</id>
		<title>Talk:COMP 3000 Essay 1 2010 Question 1</title>
		<link rel="alternate" type="text/html" href="https://homeostasis.scs.carleton.ca/wiki/index.php?title=Talk:COMP_3000_Essay_1_2010_Question_1&amp;diff=3365"/>
		<updated>2010-10-13T21:50:07Z</updated>

		<summary type="html">&lt;p&gt;Slay: /* three approaches */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Microkernel == &lt;br /&gt;
* Moving kernel functionality into processes contained in user space, e.g. file systems, drivers&lt;br /&gt;
* Keep basic functionality in kernel to handle sharing of resources&lt;br /&gt;
* Separation allows for manageability and security, corruption in one does not necessarily cause failure in system&lt;br /&gt;
* Large amount of moving from a process to Kernel to user space and back again, this is a costly operation.&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039; Microkernel &#039;&#039;&#039;&lt;br /&gt;
* try&#039;s to minimize the amount of software that is mandatory or required [7]&lt;br /&gt;
advantages of Microkernel&lt;br /&gt;
* favors a modular system structure [7]&lt;br /&gt;
* one failure of a program does not impact any other programs [7]&lt;br /&gt;
* can support more than one api or strategies since all programs are separated [7]&lt;br /&gt;
==== Microkernel Concepts ==== &lt;br /&gt;
* piece of code is allowed in the kernel only if moving it outside the kernel would adversely affect the system. [7]&lt;br /&gt;
* any subsystem program created must be independent of all other subsystem&#039;s, any subsystem that is used can guarantee this from all other subsystems [7]&lt;br /&gt;
===== Address Space =====&lt;br /&gt;
* a mapping that relates the physical page to the virtual page. [7]&lt;br /&gt;
* processor specific [7]&lt;br /&gt;
* hide&#039;s the hardware&#039;s concept of address space [7]&lt;br /&gt;
* based off the idea of recursion each subsystem has it&#039;s own address space [7]&lt;br /&gt;
* the micro kernel provides 3 operations [7]&lt;br /&gt;
** Grant [7]&lt;br /&gt;
*** allows the owner to give a page to a recipient, provided the recipient want&#039;s it the page is removed from the owner&#039;s address space and but in the recipients. [7]&lt;br /&gt;
*** must be available to the owner. [7]&lt;br /&gt;
** Map [7]&lt;br /&gt;
*** allows the user to share a page with a recipient [7]&lt;br /&gt;
*** page is not removed from the owner&#039;s address space. [7]&lt;br /&gt;
** Flush [7]&lt;br /&gt;
*** remove&#039;s the page from all recipients address space [7]&lt;br /&gt;
*** how does this work with Grant --[[User:Asoknack|Asoknack]] 19:10, 12 October 2010 (UTC)&lt;br /&gt;
* allows memory management and paging out side the kernel&lt;br /&gt;
* Map and flush is required for memory manger&#039;s and pagers [7]&lt;br /&gt;
* can be used to implement access right&#039;s [7]&lt;br /&gt;
* controlling I/O Right&#039;s and driver&#039;s are not done at kernel level [7]&lt;br /&gt;
&lt;br /&gt;
===== Thread&#039;s IPC =====&lt;br /&gt;
* Threads&lt;br /&gt;
** in the kernel [7]&lt;br /&gt;
** Since a thread has an address space , all changes to the thread need to be done by the kernel [7]&lt;br /&gt;
* IPC [7]&lt;br /&gt;
** in the kernel IPC&lt;br /&gt;
** grant and map also need IPC  (So buye the priciple above this has to be in the kernel)[7]&lt;br /&gt;
** basic way for sub process to communicate. [7]&lt;br /&gt;
* Interrupts&lt;br /&gt;
** partially in the kernel [7]&lt;br /&gt;
** hard ware is a set of thread&#039;s which are empty except for there unique sender id [7]&lt;br /&gt;
** transformation of the message to the interrupt is done in the kernel [7]&lt;br /&gt;
** the kernel is not involved in device - specific interrupt&#039;s and does not understand the interrupt. [7]&lt;br /&gt;
*** resting the interrupt is done at user level [7]&lt;br /&gt;
** if a privileged command is need it is done implicitly the next time an IPC command is sent from the device [7]&lt;br /&gt;
&lt;br /&gt;
===== Unique Identifiers =====&lt;br /&gt;
&lt;br /&gt;
== Virtual Machine ==&lt;br /&gt;
* Partitioning or virtualizing resources among OS virtualization running on top of host OS&lt;br /&gt;
* Virtualized OS believe running on full machine on its own&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
System Level Virtualization&lt;br /&gt;
&lt;br /&gt;
=== VMM ===&lt;br /&gt;
* stands for Virtual Machine Monitor, also known as the hyper-visor[4]&lt;br /&gt;
* responsible for virtualization of hardware(mapping physical to virtual) and the VM that run on top of the virtuallized hardware [4]&lt;br /&gt;
* usually a small os with no drivers , so it is coupled with a linux distro that provides device / hardware access [4]&lt;br /&gt;
** the os that the VMM is using for driver&#039;s is called the hostOS [6]&lt;br /&gt;
*the hostOS provides login and physical access to the hardware as well as management for the VMM [6]&lt;br /&gt;
=== VM ===&lt;br /&gt;
* the OS that the vm is running is called the guestOS [6]&lt;br /&gt;
* the guestOS only sees resources that have been allocated to the VM [6]&lt;br /&gt;
==== three approaches ====&lt;br /&gt;
*Type I virtualization [5]&lt;br /&gt;
** runs off the physical hardware [4]&lt;br /&gt;
** Isolation of the guestOs from the hardware is done threw processe level protection meachnism[6]&lt;br /&gt;
*** ring 0 = VMM [6]&lt;br /&gt;
*** ring 1 = VM [6]&lt;br /&gt;
*** this means all instructions from the VM must go threw the VMM [6]&lt;br /&gt;
** since there can be multiple VM&#039;s on a computer the scheduling is done by the VMM [6]&lt;br /&gt;
** on boot the VMM creates a hardware platform for the VM [6]&lt;br /&gt;
** load&#039;s the VM kernel into virtual memory and then boot&#039;s it like a regular computer [6]&lt;br /&gt;
** ex. Xen [4]&lt;br /&gt;
*Type II virtualization [5]&lt;br /&gt;
** run off the host Os [4]&lt;br /&gt;
** ex. VMware , QEMU [4]&lt;br /&gt;
* Para-virtualization [6]&lt;br /&gt;
** Similar to Type but use the HostOs for Device driver access [6]&lt;br /&gt;
** Provide a virtualization that is similar to hardware [From the paper posted, no citation yet]&lt;br /&gt;
** GuestOS and Hypervisor work together to improve performance&lt;br /&gt;
&lt;br /&gt;
== Exokernel ==&lt;br /&gt;
* Micro-kernel architecture with limited abstractions, ask for resource, get resource not resource abstraction&lt;br /&gt;
* Less functionality provided by kernel, security and handling of resource sharing&lt;br /&gt;
* Once application receives resource, it can use it as it wishes/in control&lt;br /&gt;
* Keep the basic kernel to handle allocating resources and sharing rather than developing straight to the hardware&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
* multiplex resources securely providing protection to mutual distrustful application threw the use of secure binding&#039;s[1]&lt;br /&gt;
* Goal of the exokernel is to give LibOS maximum freedom with out allowing them to interfere with each other. to do this the exokernel separates protection from management in doing this it provide 3 important tasks[1]&lt;br /&gt;
** tracking ownership of resources [1]&lt;br /&gt;
** ensuring protection by guarding all resource usage and binding points (not to shure what binding points are)[1]&lt;br /&gt;
** revoking access to the resources [1]&lt;br /&gt;
* LibrayOS (LibOs)&lt;br /&gt;
** Reduces the number of kernel crossings[1]&lt;br /&gt;
** Not trusted by the exokernel so can be trusted by the application , Example given is a bad parameter passed to the LibOs only the application is affected.[1] (So LibOs cant interact with kernel ???)&lt;br /&gt;
** Any application running on the Exokernel can change the LibrayOs freely [1]&lt;br /&gt;
** Application that use LibOS that implement standard interfaces (POSIX) will be portable on any system with the same interface [1]&lt;br /&gt;
** LibOs can be made portable if it is designed to interact with a low-level machine independent level to hide hardware details [1]&lt;br /&gt;
&lt;br /&gt;
=== Exokernel Design ===&lt;br /&gt;
==== Design Principles ====&lt;br /&gt;
*Securely Expose Hardware [1]&lt;br /&gt;
** an Exokernel tries to create low level primitives that the hardware resources can be accessed from, this also includes interrupts,exceptions [1]&lt;br /&gt;
** the exokernel also export privileged instructions to the LibOS so that traditional OS abstractions can be implemented (eg Process , address pace)[1]&lt;br /&gt;
** Exokernels should avoid resource management except when required protection ( allocation , revocation , ownership)[1]&lt;br /&gt;
** application based resource management is the best way to build flexible efficient flexible systems [1]&lt;br /&gt;
*Expose allocation[1]&lt;br /&gt;
** allow LibOs to request physical resources [1]&lt;br /&gt;
** resource allocation should not be automatic, the LibOS should participate in every single allocation decision [1]&lt;br /&gt;
*Expose Names[1]&lt;br /&gt;
** Use physical name&#039;s when ever possible[3] (not to sure what physical names are, I think it is as simple as what the hardware is called)--[[User:Asoknack|Asoknack]] 20:27, 9 October 2010 (UTC)&lt;br /&gt;
** Physical names capture useful information [3]&lt;br /&gt;
*** safer than and less resource intensive than virtual names as no translations are needed[3]&lt;br /&gt;
*Expose Revocation [1]&lt;br /&gt;
** use visible revocation protocol [1]&lt;br /&gt;
** allows well behaved LibOS to preform application level resource management [1]&lt;br /&gt;
** Visible revocation allows the LibOS to choose what instance of the resource to release[1](Visible means that when revocation happens the exokernel tell the LibOS that resource is being revoked)&lt;br /&gt;
&#039;&#039;&#039; Policy &#039;&#039;&#039;&lt;br /&gt;
* LibOS handle resource policy decisions&lt;br /&gt;
* Exokernels have a policy to decided between competing LibOS (Priority , share of resources)&lt;br /&gt;
** it enforces this threw allocation and deallocation (every thing can achieved threw this even what block to write and such)&lt;br /&gt;
&lt;br /&gt;
==== Secure Bindings ====&lt;br /&gt;
* Used by the exokernel to allow the LibOS to bind to resources [1]&lt;br /&gt;
* Allows the separation of protection and resource use [1]&lt;br /&gt;
* only checks authorization during bind time [1]&lt;br /&gt;
** Application&#039;s with complex needs for resources only authorized during bind.[1]&lt;br /&gt;
* access checking is done during access time and there is no need to understand complex resources needs during access[1]&lt;br /&gt;
** (this means that the exokernel checks once to make sure an application has authorization once approved, when the application tries to use the resource the exokernel is only concerned about policy conflict&#039;s)--[[User:Asoknack|Asoknack]] 18:20, 9 October 2010 (UTC)&lt;br /&gt;
** allows the kernel to protect the resources with out understanding what the resource is [1]&lt;br /&gt;
*three way&#039;s to implement&lt;br /&gt;
* Hardware Mechanisms [1]&lt;br /&gt;
* Software caching [1]&lt;br /&gt;
* Downloading application code [1]&lt;br /&gt;
&#039;&#039;&#039; Downloading Code to the Kernel &#039;&#039;&#039;&lt;br /&gt;
* used to implement secure bindings , and improve performance[1]&lt;br /&gt;
** eliminate the number of kernel crossings [1]&lt;br /&gt;
** downloaded code can be run with out the application to be scheduled [2]&lt;br /&gt;
==== Visible Resource Revocation ====&lt;br /&gt;
* Used for most resources [1]&lt;br /&gt;
** allows for LibOS to help with deallocation [1]&lt;br /&gt;
** LibOS are able to garner what resources are scare [1]&lt;br /&gt;
* Slower than Invisible as application involvement is required [1]&lt;br /&gt;
** ex of when invisible is used is Processor addressing-context identifiers [1]&lt;br /&gt;
==== Abort Protocol ====&lt;br /&gt;
* allows the exokernel to take resources away from the LibOS [1]&lt;br /&gt;
* used when the LibOS fails to respond to the revocation request [1]&lt;br /&gt;
* Exokernel must be careful not to delete as the LibOS might need to write some system critical data to the resource [1]&lt;br /&gt;
&lt;br /&gt;
== Comparisons  ==&lt;br /&gt;
====Exokernel/Microkernel====&lt;br /&gt;
&#039;&#039;&#039;Similarities&#039;&#039;&#039;&lt;br /&gt;
* Limited functionality in kernel&lt;br /&gt;
** functionality in kernel to handle sharing of resources and security&lt;br /&gt;
** avoids programming directly to hardware which creates a dependency&lt;br /&gt;
* Additional functionality provided in user space as processes&lt;br /&gt;
&#039;&#039;&#039;Differences&#039;&#039;&#039;&lt;br /&gt;
* Minimal abstractions provided by the kernel&lt;br /&gt;
** Applications given more power in exokernel&lt;br /&gt;
&lt;br /&gt;
====Exokernel/VM====&lt;br /&gt;
&#039;&#039;&#039;Similarities&#039;&#039;&#039;&lt;br /&gt;
* Idea of partitioning resources between applications/OSs&lt;br /&gt;
* &amp;quot;Control&amp;quot; of resource given&lt;br /&gt;
* Isolation from other applications/OSs&lt;br /&gt;
&#039;&#039;&#039;Differences&#039;&#039;&#039;&lt;br /&gt;
* Exokernel runs applications, VM runs OS&lt;br /&gt;
* VM uses a hostOS and guestOSs run on top&lt;br /&gt;
* Virtualization on VMs, Exokernel deals with real resources&lt;br /&gt;
* VM hides a lot of information because it emulates. Exokernel does not.&lt;br /&gt;
&lt;br /&gt;
====Microkernel/VM====&lt;br /&gt;
&#039;&#039;&#039;Differences&#039;&#039;&#039;&lt;br /&gt;
* With a virtual machine, you are not virtualizing apps like with a microkernel but virtualizing an entire Operating System.&lt;br /&gt;
* This can be costly but the benefits are that it&#039;s easier and all the standard OS features are available.&lt;br /&gt;
&lt;br /&gt;
== References ==&lt;br /&gt;
[1]&amp;lt;nowiki&amp;gt; Engler, D. R., Kaashoek, M. F., and O&#039;Toole, J. 1995. Exokernel: an operating system architecture for application-level resource management. In Proceedings of the Fifteenth ACM Symposium on Operating Systems Principles  (Copper Mountain, Colorado, United States, December 03 - 06, 1995). M. B. Jones, Ed. SOSP &#039;95. ACM, New York, NY, 251-266. DOI= http://doi.acm.org/10.1145/224056.224076 &amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[2]&amp;lt;nowiki&amp;gt;Engler, Dawson R. &amp;quot;The Exokernel Operating System Architecture.&amp;quot; Diss. Massachusetts Institute of Technology, Dept. of Electrical Engineering and Computer Science, 1998. Web. 9 Oct. 2010. &amp;lt;http://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.61.5054&amp;amp;rep=rep1&amp;amp;type=pdf&amp;gt;.&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[3]&amp;lt;nowiki&amp;gt;Kaashoek, M. F., Engler, D. R., Ganger, G. R., Briceño, H. M., Hunt, R., Mazières, D., Pinckney, T., Grimm, R., Jannotti, J., and Mackenzie, K. 1997. Application performance and flexibility on exokernel systems. In Proceedings of the Sixteenth ACM Symposium on Operating Systems Principles  (Saint Malo, France, October 05 - 08, 1997). W. M. Waite, Ed. SOSP &#039;97. ACM, New York, NY, 52-65. DOI= http://doi.acm.org/10.1145/268998.266644 &amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[4]&amp;lt;nowiki&amp;gt;Vallee, G.; Naughton, T.; Engelmann, C.; Hong Ong; Scott, S.L.; , &amp;quot;System-Level Virtualization for High Performance Computing,&amp;quot; Parallel, Distributed and Network-Based Processing, 2008. PDP 2008. 16th Euromicro Conference on , vol., no., pp.636-643, 13-15 Feb. 2008&lt;br /&gt;
DOI= http://doi.acm.org/10.1109/PDP.2008.85 &amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[5]&amp;lt;nowiki&amp;gt;Goldberg, R. P. 1973. Architecture of virtual machines. In Proceedings of the Workshop on Virtual Computer Systems  (Cambridge, Massachusetts, United States, March 26 - 27, 1973). ACM, New York, NY, 74-112. DOI= http://doi.acm.org/10.1145/800122.803950 &amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[6]&amp;lt;nowiki&amp;gt;Vallee, G., Naughton, T., and Scott, S. L. 2007. System management software for virtual environments. In Proceedings of the 4th international Conference on Computing Frontiers (Ischia, Italy, May 07 - 09, 2007). CF &#039;07. ACM, New York, NY, 153-160. DOI= http://doi.acm.org/10.1145/1242531.1242555 &amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[7]&amp;lt;nowiki&amp;gt;Liedtke, J. 1995. On micro-kernel construction. In Proceedings of the Fifteenth ACM Symposium on Operating Systems Principles  (Copper Mountain, Colorado, United States, December 03 - 06, 1995). M. B. Jones, Ed. SOSP &#039;95. ACM, New York, NY, 237-250. DOI= http://doi.acm.org/10.1145/224056.224075 &amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Unsorted ==&lt;br /&gt;
An overview of exokernels,virtual machines, microkernels *[http://www2.supchurch.org:10999/files/school/classes/CSCI4730/Lectures/grad-structures.ppt Overview](Power Point)&amp;lt;br&amp;gt;&lt;br /&gt;
Should not be used as a source but an overview.&lt;br /&gt;
&lt;br /&gt;
The original paper on [http://portal.acm.org/citation.cfm?id=224076 Exokernels] --[[User:Gautam|Gautam]] 22:39, 6 October 2010 (UTC)&lt;br /&gt;
&lt;br /&gt;
Exokernel-&lt;br /&gt;
Minimalistic abstractions for developers&lt;br /&gt;
Exokernels can be seen as a good compromise between virtual machines and microkernels in the sense that exokernels can give that low level access to developers similar to direct access through a protected layer and at the same time can contain enough hardware abstraction to allow similar benefit of hiding the hardware resources to application programs.&lt;br /&gt;
Exokernel – fewest hardware abstractions to developer&lt;br /&gt;
Microkernel - is the near-minimum amount of software that can provide the mechanisms needed to implement an operating system&lt;br /&gt;
Virtual machine is a simulation of any or devices requested by an application program&lt;br /&gt;
Exokenel – I’ve got a sound card&lt;br /&gt;
Virtual Machine – I’ve got the sound card you’re looking for, perfect virtual match&lt;br /&gt;
Microkernel – I’ve got sound card that plays Khazikstan sound format only&lt;br /&gt;
MicroKernel - Very small, very predictable, good for schedualing (QNX is a microkernel - POSIX compatable, benefits of running linux software like modern browsers) &lt;br /&gt;
&lt;br /&gt;
This is some ideas I&#039;ve got on this question, please contribute below&lt;br /&gt;
-Rovic&lt;br /&gt;
&lt;br /&gt;
Outlining some main features here as I see them.&lt;br /&gt;
&lt;br /&gt;
I found that the exokernel was an even lower-level design than the microkernel, closer to the hardware without abstraction. They have the same architecture with the basic functionality contained in the kernel to manage everyone. As the exokernel &amp;quot;gives&amp;quot; the resource to the application it can use the resource in isolation of other applications (until forced to shared) much like VMs receive their resources, either partitioned or virtualized, and execute as if its running on its own machine. There is this similar notion of partitioning the resources among applications/OS and allowing them to take control of what they have. &lt;br /&gt;
&lt;br /&gt;
I&#039;ll locate some references later on. --[[User:Slay|Slay]] 15:00, 7 October 2010 (UTC)&lt;br /&gt;
&lt;br /&gt;
I&#039;m just going to post my answer for question 1 on the individuel assignment and hope it helps. --[[User:Aellebla|Aellebla]] 15:06, 12 October 2010 (UTC)&lt;br /&gt;
&lt;br /&gt;
The design of the micro kernel was to take everything they could out of the Kernel and put it into a process. For ex, networking would be put into a process instead of staying in the kernel. The micro kernel dev&#039;s tried to keep lots of things in user space for efficiency. But one major problem with this is there would be a large amount of moving from a process to the kernel to user space and back again and this is a costly, non efficient process.It was an application specific OS, there was no multiplexing. With a virtual machine you are not virtualizing apps like with a microkernel but virtualizing an entire Operating System. This is very heavy however but the benefits are that it‟s easy and all the standard OS features are there whereas in a microkernel setup they would not all be there and this can be seen as a compromise.&lt;br /&gt;
&lt;br /&gt;
Exokernels can be seen as a compromise to virtual machines and microkernels because virtual machines emulate and exokernels do not. When you emulate something you hide a lot of the actual information because you wouldn‟t be able to see the „real‟ hardware. If we look at a virtual box setup running Linux, and we go look at all the hardware, it will be displayed as fake hardware.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Maybe we can have an introduction - paragraph or so on each type - then similarities - differences - and the compromise.  I am going to do some research and writing this weekend and I will put some up  -- Jslonosky&lt;br /&gt;
&lt;br /&gt;
btw in my page (i guess you can call it that) i have some resources i have found  --[[User:Asoknack|Asoknack]] 15:50, 8 October 2010 (UTC)&lt;br /&gt;
- Wow, nice man. I will go ahead and write up the descriptive paragraphs on each kernel and virtual machine if no one minds. --Jslonosky&lt;br /&gt;
&lt;br /&gt;
I think we should divide up the paragraphs and proofread each others instead. (Are there only 4 of us?) I don&#039;t have much time to work on this today though but I&#039;ll try to work on it tomorrow morning. - Slay&lt;br /&gt;
&lt;br /&gt;
Sure guy.  That sounds good.  There should be 5 or 6 of us though.. . Oh well. Their loss.  I will do some before or after work today. Ill start with Microkernel since there is not a large amount of info here, and so we don&#039;t overlap each other - JSlonosky&lt;br /&gt;
&lt;br /&gt;
yeah i think there was more like 7 of us btw if any one has any more information feel free to add it would be nice if you add the references so that way citing is really easy on  acm.org it will auto give you the citation info (where it says Display Formats click on ACM Ref  and new window with the citation info auto pop&#039;s up) --[[User:Asoknack|Asoknack]] 02:28, 11 October 2010 (UTC)&lt;br /&gt;
&lt;br /&gt;
I added an outline of the similarities and differences. Add any more that I missed. These are from observations so I don&#039;t have any resources. -Slay&lt;br /&gt;
That&#039;s probably fine.  Our textbook probably outlines some of them, so I am sure we can find a few there - JSlonosky&lt;br /&gt;
&lt;br /&gt;
Talked to the teacher today and for VM he said we should focus on the implementation such as Xen and VMware , he also said to talk about para virtualization --[[User:Asoknack|Asoknack]] 18:42, 12 October 2010 (UTC)&lt;br /&gt;
&lt;br /&gt;
A paper about emulation and paravirtualization [http://portal.acm.org/citation.cfm?id=1189289&amp;amp;coll=GUIDE&amp;amp;dl=GUIDE&amp;amp;CFID=105648137&amp;amp;CFTOKEN=47153176&amp;amp;ret=1#Fulltext link] - Slay&lt;br /&gt;
&lt;br /&gt;
Oh no big words.  Sorry about the Microkernels not done yet.  Working on an outline now.  Finally found how to access the ACM through carleton.  Gawd. &lt;br /&gt;
I am planning an outline, quick bit about kernels in general, (maybe mention monolith kernels?), and what microkernels do.&lt;br /&gt;
I see the microkernel outline info and a reference ( Whomever did that == hero: true) about the scheduling and the Memory management.  Should that be included in kernels in general and then mention what microkernels build upon/change? - JSlonosky&lt;br /&gt;
&lt;br /&gt;
Sorry late to the party here. My mistake was not checking the discussion page when I checked in. I don&#039;t want to trample anyone&#039;s current work but I don&#039;t see any work on the final essay done. I would love to help just need to know where I can step in so as to not screw anyone else up. -- [[User:Cling|Cling]]&lt;br /&gt;
&lt;br /&gt;
== The Essay ==&lt;br /&gt;
&lt;br /&gt;
Let&#039;s actually breakdown the essay into components then write it here.&lt;br /&gt;
&lt;br /&gt;
I&#039;d like to go along the premise that microkernels and and virtual machines are &amp;quot;weaker&amp;quot; than exokernels in design for the essay. If anyone has any objections, add it here. &lt;br /&gt;
&lt;br /&gt;
-Slade&lt;br /&gt;
&lt;br /&gt;
 what do you mean by &amp;quot;weaker&amp;quot;(i think you mean exokernels&#039; takes the best of both worlds ) --[[User:Asoknack|Asoknack]] 02:45, 13 October 2010 (UTC)&lt;br /&gt;
&lt;br /&gt;
We have our intro/thesis statement&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
...to the extent that exokernels be seen as a compromise between virtual machines and microkernels. &lt;br /&gt;
-I&#039;ll work on the initial intro, should have it ready by tonight. -Slade&lt;br /&gt;
&lt;br /&gt;
3 paragraphs that prove it&lt;br /&gt;
Explain how the key design characteristics of these three system architectures compare with each other. &lt;br /&gt;
&lt;br /&gt;
and conclusion&lt;/div&gt;</summary>
		<author><name>Slay</name></author>
	</entry>
	<entry>
		<id>https://homeostasis.scs.carleton.ca/wiki/index.php?title=Talk:COMP_3000_Essay_1_2010_Question_1&amp;diff=3308</id>
		<title>Talk:COMP 3000 Essay 1 2010 Question 1</title>
		<link rel="alternate" type="text/html" href="https://homeostasis.scs.carleton.ca/wiki/index.php?title=Talk:COMP_3000_Essay_1_2010_Question_1&amp;diff=3308"/>
		<updated>2010-10-13T18:22:05Z</updated>

		<summary type="html">&lt;p&gt;Slay: /* three approaches */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Microkernel == &lt;br /&gt;
* Moving kernel functionality into processes contained in user space, e.g. file systems, drivers&lt;br /&gt;
* Keep basic functionality in kernel to handle sharing of resources&lt;br /&gt;
* Separation allows for manageability and security, corruption in one does not necessarily cause failure in system&lt;br /&gt;
* Large amount of moving from a process to Kernel to user space and back again, this is a costly operation.&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039; Microkernel &#039;&#039;&#039;&lt;br /&gt;
* try&#039;s to minimize the amount of software that is mandatory or required [7]&lt;br /&gt;
advantages of Microkernel&lt;br /&gt;
* favors a modular system structure [7]&lt;br /&gt;
* one failure of a program does not impact any other programs [7]&lt;br /&gt;
* can support more than one api or strategies since all programs are separated [7]&lt;br /&gt;
==== Microkernel Concepts ==== &lt;br /&gt;
* piece of code is allowed in the kernel only if moving it outside the kernel would adversely affect the system. [7]&lt;br /&gt;
* any subsystem program created must be independent of all other subsystem&#039;s, any subsystem that is used can guarantee this from all other subsystems [7]&lt;br /&gt;
===== Address Space =====&lt;br /&gt;
* a mapping that relates the physical page to the virtual page. [7]&lt;br /&gt;
* processor specific [7]&lt;br /&gt;
* hide&#039;s the hardware&#039;s concept of address space [7]&lt;br /&gt;
* based off the idea of recursion each subsystem has it&#039;s own address space [7]&lt;br /&gt;
* the micro kernel provides 3 operations [7]&lt;br /&gt;
** Grant [7]&lt;br /&gt;
*** allows the owner to give a page to a recipient, provided the recipient want&#039;s it the page is removed from the owner&#039;s address space and but in the recipients. [7]&lt;br /&gt;
*** must be available to the owner. [7]&lt;br /&gt;
** Map [7]&lt;br /&gt;
*** allows the user to share a page with a recipient [7]&lt;br /&gt;
*** page is not removed from the owner&#039;s address space. [7]&lt;br /&gt;
** Flush [7]&lt;br /&gt;
*** remove&#039;s the page from all recipients address space [7]&lt;br /&gt;
*** how does this work with Grant --[[User:Asoknack|Asoknack]] 19:10, 12 October 2010 (UTC)&lt;br /&gt;
* allows memory management and paging out side the kernel&lt;br /&gt;
* Map and flush is required for memory manger&#039;s and pagers [7]&lt;br /&gt;
* can be used to implement access right&#039;s [7]&lt;br /&gt;
* controlling I/O Right&#039;s and driver&#039;s are not done at kernel level [7]&lt;br /&gt;
&lt;br /&gt;
===== Thread&#039;s IPC =====&lt;br /&gt;
* Threads&lt;br /&gt;
** in the kernel [7]&lt;br /&gt;
** Since a thread has an address space , all changes to the thread need to be done by the kernel [7]&lt;br /&gt;
* IPC [7]&lt;br /&gt;
** in the kernel IPC&lt;br /&gt;
** grant and map also need IPC  (So buye the priciple above this has to be in the kernel)[7]&lt;br /&gt;
** basic way for sub process to communicate. [7]&lt;br /&gt;
* Interrupts&lt;br /&gt;
** partially in the kernel [7]&lt;br /&gt;
** hard ware is a set of thread&#039;s which are empty except for there unique sender id [7]&lt;br /&gt;
** transformation of the message to the interrupt is done in the kernel [7]&lt;br /&gt;
** the kernel is not involved in device - specific interrupt&#039;s and does not understand the interrupt. [7]&lt;br /&gt;
*** resting the interrupt is done at user level [7]&lt;br /&gt;
** if a privileged command is need it is done implicitly the next time an IPC command is sent from the device [7]&lt;br /&gt;
&lt;br /&gt;
===== Unique Identifiers =====&lt;br /&gt;
&lt;br /&gt;
== Virtual Machine ==&lt;br /&gt;
* Partitioning or virtualizing resources among OS virtualization running on top of host OS&lt;br /&gt;
* Virtualized OS believe running on full machine on its own&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
System Level Virtualization&lt;br /&gt;
&lt;br /&gt;
=== VMM ===&lt;br /&gt;
* stands for Virtual Machine Monitor, also known as the hyper-visor[4]&lt;br /&gt;
* responsible for virtualization of hardware(mapping physical to virtual) and the VM that run on top of the virtuallized hardware [4]&lt;br /&gt;
* usually a small os with no drivers , so it is coupled with a linux distro that provides device / hardware access [4]&lt;br /&gt;
** the os that the VMM is using for driver&#039;s is called the hostOS [6]&lt;br /&gt;
*the hostOS provides login and physical access to the hardware as well as management for the VMM [6]&lt;br /&gt;
=== VM ===&lt;br /&gt;
* the OS that the vm is running is called the guestOS [6]&lt;br /&gt;
* the guestOS only sees resources that have been allocated to the VM [6]&lt;br /&gt;
==== three approaches ====&lt;br /&gt;
*Type I virtualization [5]&lt;br /&gt;
** runs off the physical hardware [4]&lt;br /&gt;
** Isolation of the guestOs from the hardware is done threw processe level protection meachnism[6]&lt;br /&gt;
*** ring 0 = VMM [6]&lt;br /&gt;
*** ring 1 = VM [6]&lt;br /&gt;
*** this means all instructions from the VM must go threw the VMM [6]&lt;br /&gt;
** since there can be multiple VM&#039;s on a computer the scheduling is done by the VMM [6]&lt;br /&gt;
** on boot the VMM creates a hardware platform for the VM [6]&lt;br /&gt;
** load&#039;s the VM kernel into virtual memory and then boot&#039;s it like a regular computer [6]&lt;br /&gt;
** ex. Xen [4]&lt;br /&gt;
*Type II virtualization [5]&lt;br /&gt;
** run off the host Os [4]&lt;br /&gt;
** ex. VMware , QEMU [4]&lt;br /&gt;
* Para-virtualization [6]&lt;br /&gt;
** Similar to Type but use the HostOs for Device driver access [6]&lt;br /&gt;
** Provide a virtualization that is similar to hardware [From the paper I posted. Will work on this more tonight - Slay]&lt;br /&gt;
** GuestOS and Hypervisor work together to improve performance&lt;br /&gt;
&lt;br /&gt;
== Exokernel ==&lt;br /&gt;
* Micro-kernel architecture with limited abstractions, ask for resource, get resource not resource abstraction&lt;br /&gt;
* Less functionality provided by kernel, security and handling of resource sharing&lt;br /&gt;
* Once application receives resource, it can use it as it wishes/in control&lt;br /&gt;
* Keep the basic kernel to handle allocating resources and sharing rather than developing straight to the hardware&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
* multiplex resources securely providing protection to mutual distrustful application threw the use of secure binding&#039;s[1]&lt;br /&gt;
* Goal of the exokernel is to give LibOS maximum freedom with out allowing them to interfere with each other. to do this the exokernel separates protection from management in doing this it provide 3 important tasks[1]&lt;br /&gt;
** tracking ownership of resources [1]&lt;br /&gt;
** ensuring protection by guarding all resource usage and binding points (not to shure what binding points are)[1]&lt;br /&gt;
** revoking access to the resources [1]&lt;br /&gt;
* LibrayOS (LibOs)&lt;br /&gt;
** Reduces the number of kernel crossings[1]&lt;br /&gt;
** Not trusted by the exokernel so can be trusted by the application , Example given is a bad parameter passed to the LibOs only the application is affected.[1] (So LibOs cant interact with kernel ???)&lt;br /&gt;
** Any application running on the Exokernel can change the LibrayOs freely [1]&lt;br /&gt;
** Application that use LibOS that implement standard interfaces (POSIX) will be portable on any system with the same interface [1]&lt;br /&gt;
** LibOs can be made portable if it is designed to interact with a low-level machine independent level to hide hardware details [1]&lt;br /&gt;
&lt;br /&gt;
=== Exokernel Design ===&lt;br /&gt;
==== Design Principles ====&lt;br /&gt;
*Securely Expose Hardware [1]&lt;br /&gt;
** an Exokernel tries to create low level primitives that the hardware resources can be accessed from, this also includes interrupts,exceptions [1]&lt;br /&gt;
** the exokernel also export privileged instructions to the LibOS so that traditional OS abstractions can be implemented (eg Process , address pace)[1]&lt;br /&gt;
** Exokernels should avoid resource management except when required protection ( allocation , revocation , ownership)[1]&lt;br /&gt;
** application based resource management is the best way to build flexible efficient flexible systems [1]&lt;br /&gt;
*Expose allocation[1]&lt;br /&gt;
** allow LibOs to request physical resources [1]&lt;br /&gt;
** resource allocation should not be automatic, the LibOS should participate in every single allocation decision [1]&lt;br /&gt;
*Expose Names[1]&lt;br /&gt;
** Use physical name&#039;s when ever possible[3] (not to sure what physical names are, I think it is as simple as what the hardware is called)--[[User:Asoknack|Asoknack]] 20:27, 9 October 2010 (UTC)&lt;br /&gt;
** Physical names capture useful information [3]&lt;br /&gt;
*** safer than and less resource intensive than virtual names as no translations are needed[3]&lt;br /&gt;
*Expose Revocation [1]&lt;br /&gt;
** use visible revocation protocol [1]&lt;br /&gt;
** allows well behaved LibOS to preform application level resource management [1]&lt;br /&gt;
** Visible revocation allows the LibOS to choose what instance of the resource to release[1](Visible means that when revocation happens the exokernel tell the LibOS that resource is being revoked)&lt;br /&gt;
&#039;&#039;&#039; Policy &#039;&#039;&#039;&lt;br /&gt;
* LibOS handle resource policy decisions&lt;br /&gt;
* Exokernels have a policy to decided between competing LibOS (Priority , share of resources)&lt;br /&gt;
** it enforces this threw allocation and deallocation (every thing can achieved threw this even what block to write and such)&lt;br /&gt;
&lt;br /&gt;
==== Secure Bindings ====&lt;br /&gt;
* Used by the exokernel to allow the LibOS to bind to resources [1]&lt;br /&gt;
* Allows the separation of protection and resource use [1]&lt;br /&gt;
* only checks authorization during bind time [1]&lt;br /&gt;
** Application&#039;s with complex needs for resources only authorized during bind.[1]&lt;br /&gt;
* access checking is done during access time and there is no need to understand complex resources needs during access[1]&lt;br /&gt;
** (this means that the exokernel checks once to make sure an application has authorization once approved, when the application tries to use the resource the exokernel is only concerned about policy conflict&#039;s)--[[User:Asoknack|Asoknack]] 18:20, 9 October 2010 (UTC)&lt;br /&gt;
** allows the kernel to protect the resources with out understanding what the resource is [1]&lt;br /&gt;
*three way&#039;s to implement&lt;br /&gt;
* Hardware Mechanisms [1]&lt;br /&gt;
* Software caching [1]&lt;br /&gt;
* Downloading application code [1]&lt;br /&gt;
&#039;&#039;&#039; Downloading Code to the Kernel &#039;&#039;&#039;&lt;br /&gt;
* used to implement secure bindings , and improve performance[1]&lt;br /&gt;
** eliminate the number of kernel crossings [1]&lt;br /&gt;
** downloaded code can be run with out the application to be scheduled [2]&lt;br /&gt;
==== Visible Resource Revocation ====&lt;br /&gt;
* Used for most resources [1]&lt;br /&gt;
** allows for LibOS to help with deallocation [1]&lt;br /&gt;
** LibOS are able to garner what resources are scare [1]&lt;br /&gt;
* Slower than Invisible as application involvement is required [1]&lt;br /&gt;
** ex of when invisible is used is Processor addressing-context identifiers [1]&lt;br /&gt;
==== Abort Protocol ====&lt;br /&gt;
* allows the exokernel to take resources away from the LibOS [1]&lt;br /&gt;
* used when the LibOS fails to respond to the revocation request [1]&lt;br /&gt;
* Exokernel must be careful not to delete as the LibOS might need to write some system critical data to the resource [1]&lt;br /&gt;
&lt;br /&gt;
== Comparisons  ==&lt;br /&gt;
====Exokernel/Microkernel====&lt;br /&gt;
&#039;&#039;&#039;Similarities&#039;&#039;&#039;&lt;br /&gt;
* Limited functionality in kernel&lt;br /&gt;
** functionality in kernel to handle sharing of resources and security&lt;br /&gt;
** avoids programming directly to hardware which creates a dependency&lt;br /&gt;
* Additional functionality provided in user space as processes&lt;br /&gt;
&#039;&#039;&#039;Differences&#039;&#039;&#039;&lt;br /&gt;
* Minimal abstractions provided by the kernel&lt;br /&gt;
** Applications given more power in exokernel&lt;br /&gt;
&lt;br /&gt;
====Exokernel/VM====&lt;br /&gt;
&#039;&#039;&#039;Similarities&#039;&#039;&#039;&lt;br /&gt;
* Idea of partitioning resources between applications/OSs&lt;br /&gt;
* &amp;quot;Control&amp;quot; of resource given&lt;br /&gt;
* Isolation from other applications/OSs&lt;br /&gt;
&#039;&#039;&#039;Differences&#039;&#039;&#039;&lt;br /&gt;
* Exokernel runs applications, VM runs OS&lt;br /&gt;
* VM uses a hostOS and guestOSs run on top&lt;br /&gt;
* Virtualization on VMs, Exokernel deals with real resources&lt;br /&gt;
* VM hides a lot of information because it emulates. Exokernel does not.&lt;br /&gt;
&lt;br /&gt;
====Microkernel/VM====&lt;br /&gt;
&#039;&#039;&#039;Differences&#039;&#039;&#039;&lt;br /&gt;
* With a virtual machine, you are not virtualizing apps like with a microkernel but virtualizing an entire Operating System.&lt;br /&gt;
* This can be costly but the benefits are that it&#039;s easier and all the standard OS features are available.&lt;br /&gt;
&lt;br /&gt;
== References ==&lt;br /&gt;
[1]&amp;lt;nowiki&amp;gt; Engler, D. R., Kaashoek, M. F., and O&#039;Toole, J. 1995. Exokernel: an operating system architecture for application-level resource management. In Proceedings of the Fifteenth ACM Symposium on Operating Systems Principles  (Copper Mountain, Colorado, United States, December 03 - 06, 1995). M. B. Jones, Ed. SOSP &#039;95. ACM, New York, NY, 251-266. DOI= http://doi.acm.org/10.1145/224056.224076 &amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[2]&amp;lt;nowiki&amp;gt;Engler, Dawson R. &amp;quot;The Exokernel Operating System Architecture.&amp;quot; Diss. Massachusetts Institute of Technology, Dept. of Electrical Engineering and Computer Science, 1998. Web. 9 Oct. 2010. &amp;lt;http://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.61.5054&amp;amp;rep=rep1&amp;amp;type=pdf&amp;gt;.&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[3]&amp;lt;nowiki&amp;gt;Kaashoek, M. F., Engler, D. R., Ganger, G. R., Briceño, H. M., Hunt, R., Mazières, D., Pinckney, T., Grimm, R., Jannotti, J., and Mackenzie, K. 1997. Application performance and flexibility on exokernel systems. In Proceedings of the Sixteenth ACM Symposium on Operating Systems Principles  (Saint Malo, France, October 05 - 08, 1997). W. M. Waite, Ed. SOSP &#039;97. ACM, New York, NY, 52-65. DOI= http://doi.acm.org/10.1145/268998.266644 &amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[4]&amp;lt;nowiki&amp;gt;Vallee, G.; Naughton, T.; Engelmann, C.; Hong Ong; Scott, S.L.; , &amp;quot;System-Level Virtualization for High Performance Computing,&amp;quot; Parallel, Distributed and Network-Based Processing, 2008. PDP 2008. 16th Euromicro Conference on , vol., no., pp.636-643, 13-15 Feb. 2008&lt;br /&gt;
DOI= http://doi.acm.org/10.1109/PDP.2008.85 &amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[5]&amp;lt;nowiki&amp;gt;Goldberg, R. P. 1973. Architecture of virtual machines. In Proceedings of the Workshop on Virtual Computer Systems  (Cambridge, Massachusetts, United States, March 26 - 27, 1973). ACM, New York, NY, 74-112. DOI= http://doi.acm.org/10.1145/800122.803950 &amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[6]&amp;lt;nowiki&amp;gt;Vallee, G., Naughton, T., and Scott, S. L. 2007. System management software for virtual environments. In Proceedings of the 4th international Conference on Computing Frontiers (Ischia, Italy, May 07 - 09, 2007). CF &#039;07. ACM, New York, NY, 153-160. DOI= http://doi.acm.org/10.1145/1242531.1242555 &amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[7]&amp;lt;nowiki&amp;gt;Liedtke, J. 1995. On micro-kernel construction. In Proceedings of the Fifteenth ACM Symposium on Operating Systems Principles  (Copper Mountain, Colorado, United States, December 03 - 06, 1995). M. B. Jones, Ed. SOSP &#039;95. ACM, New York, NY, 237-250. DOI= http://doi.acm.org/10.1145/224056.224075 &amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Unsorted ==&lt;br /&gt;
An overview of exokernels,virtual machines, microkernels *[http://www2.supchurch.org:10999/files/school/classes/CSCI4730/Lectures/grad-structures.ppt Overview](Power Point)&amp;lt;br&amp;gt;&lt;br /&gt;
Should not be used as a source but an overview.&lt;br /&gt;
&lt;br /&gt;
The original paper on [http://portal.acm.org/citation.cfm?id=224076 Exokernels] --[[User:Gautam|Gautam]] 22:39, 6 October 2010 (UTC)&lt;br /&gt;
&lt;br /&gt;
Exokernel-&lt;br /&gt;
Minimalistic abstractions for developers&lt;br /&gt;
Exokernels can be seen as a good compromise between virtual machines and microkernels in the sense that exokernels can give that low level access to developers similar to direct access through a protected layer and at the same time can contain enough hardware abstraction to allow similar benefit of hiding the hardware resources to application programs.&lt;br /&gt;
Exokernel – fewest hardware abstractions to developer&lt;br /&gt;
Microkernel - is the near-minimum amount of software that can provide the mechanisms needed to implement an operating system&lt;br /&gt;
Virtual machine is a simulation of any or devices requested by an application program&lt;br /&gt;
Exokenel – I’ve got a sound card&lt;br /&gt;
Virtual Machine – I’ve got the sound card you’re looking for, perfect virtual match&lt;br /&gt;
Microkernel – I’ve got sound card that plays Khazikstan sound format only&lt;br /&gt;
MicroKernel - Very small, very predictable, good for schedualing (QNX is a microkernel - POSIX compatable, benefits of running linux software like modern browsers) &lt;br /&gt;
&lt;br /&gt;
This is some ideas I&#039;ve got on this question, please contribute below&lt;br /&gt;
-Rovic&lt;br /&gt;
&lt;br /&gt;
Outlining some main features here as I see them.&lt;br /&gt;
&lt;br /&gt;
I found that the exokernel was an even lower-level design than the microkernel, closer to the hardware without abstraction. They have the same architecture with the basic functionality contained in the kernel to manage everyone. As the exokernel &amp;quot;gives&amp;quot; the resource to the application it can use the resource in isolation of other applications (until forced to shared) much like VMs receive their resources, either partitioned or virtualized, and execute as if its running on its own machine. There is this similar notion of partitioning the resources among applications/OS and allowing them to take control of what they have. &lt;br /&gt;
&lt;br /&gt;
I&#039;ll locate some references later on. --[[User:Slay|Slay]] 15:00, 7 October 2010 (UTC)&lt;br /&gt;
&lt;br /&gt;
I&#039;m just going to post my answer for question 1 on the individuel assignment and hope it helps. --[[User:Aellebla|Aellebla]] 15:06, 12 October 2010 (UTC)&lt;br /&gt;
&lt;br /&gt;
The design of the micro kernel was to take everything they could out of the Kernel and put it into a process. For ex, networking would be put into a process instead of staying in the kernel. The micro kernel dev&#039;s tried to keep lots of things in user space for efficiency. But one major problem with this is there would be a large amount of moving from a process to the kernel to user space and back again and this is a costly, non efficient process.It was an application specific OS, there was no multiplexing. With a virtual machine you are not virtualizing apps like with a microkernel but virtualizing an entire Operating System. This is very heavy however but the benefits are that it‟s easy and all the standard OS features are there whereas in a microkernel setup they would not all be there and this can be seen as a compromise.&lt;br /&gt;
&lt;br /&gt;
Exokernels can be seen as a compromise to virtual machines and microkernels because virtual machines emulate and exokernels do not. When you emulate something you hide a lot of the actual information because you wouldn‟t be able to see the „real‟ hardware. If we look at a virtual box setup running Linux, and we go look at all the hardware, it will be displayed as fake hardware.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Maybe we can have an introduction - paragraph or so on each type - then similarities - differences - and the compromise.  I am going to do some research and writing this weekend and I will put some up  -- Jslonosky&lt;br /&gt;
&lt;br /&gt;
btw in my page (i guess you can call it that) i have some resources i have found  --[[User:Asoknack|Asoknack]] 15:50, 8 October 2010 (UTC)&lt;br /&gt;
- Wow, nice man. I will go ahead and write up the descriptive paragraphs on each kernel and virtual machine if no one minds. --Jslonosky&lt;br /&gt;
&lt;br /&gt;
I think we should divide up the paragraphs and proofread each others instead. (Are there only 4 of us?) I don&#039;t have much time to work on this today though but I&#039;ll try to work on it tomorrow morning. - Slay&lt;br /&gt;
&lt;br /&gt;
Sure guy.  That sounds good.  There should be 5 or 6 of us though.. . Oh well. Their loss.  I will do some before or after work today. Ill start with Microkernel since there is not a large amount of info here, and so we don&#039;t overlap each other - JSlonosky&lt;br /&gt;
&lt;br /&gt;
yeah i think there was more like 7 of us btw if any one has any more information feel free to add it would be nice if you add the references so that way citing is really easy on  acm.org it will auto give you the citation info (where it says Display Formats click on ACM Ref  and new window with the citation info auto pop&#039;s up) --[[User:Asoknack|Asoknack]] 02:28, 11 October 2010 (UTC)&lt;br /&gt;
&lt;br /&gt;
I added an outline of the similarities and differences. Add any more that I missed. These are from observations so I don&#039;t have any resources. -Slay&lt;br /&gt;
That&#039;s probably fine.  Our textbook probably outlines some of them, so I am sure we can find a few there - JSlonosky&lt;br /&gt;
&lt;br /&gt;
Talked to the teacher today and for VM he said we should focus on the implementation such as Xen and VMware , he also said to talk about para virtualization --[[User:Asoknack|Asoknack]] 18:42, 12 October 2010 (UTC)&lt;br /&gt;
&lt;br /&gt;
A paper about emulation and paravirtualization [http://portal.acm.org/citation.cfm?id=1189289&amp;amp;coll=GUIDE&amp;amp;dl=GUIDE&amp;amp;CFID=105648137&amp;amp;CFTOKEN=47153176&amp;amp;ret=1#Fulltext link] - Slay&lt;br /&gt;
&lt;br /&gt;
Oh no big words.  Sorry about the Microkernels not done yet.  Working on an outline now.  Finally found how to access the ACM through carleton.  Gawd. &lt;br /&gt;
I am planning an outline, quick bit about kernels in general, (maybe mention monolith kernels?), and what microkernels do.&lt;br /&gt;
I see the microkernel outline info and a reference ( Whomever did that == hero: true) about the scheduling and the Memory management.  Should that be included in kernels in general and then mention what microkernels build upon/change? - JSlonosky&lt;br /&gt;
&lt;br /&gt;
== The Essay ==&lt;br /&gt;
&lt;br /&gt;
Let&#039;s actually breakdown the essay into components then write it here.&lt;br /&gt;
&lt;br /&gt;
I&#039;d like to go along the premise that microkernels and and virtual machines are &amp;quot;weaker&amp;quot; than exokernels in design for the essay. If anyone has any objections, add it here. &lt;br /&gt;
&lt;br /&gt;
-Slade&lt;br /&gt;
&lt;br /&gt;
 what do you mean by &amp;quot;weaker&amp;quot;(i think you mean exokernels&#039; takes the best of both worlds ) --[[User:Asoknack|Asoknack]] 02:45, 13 October 2010 (UTC)&lt;br /&gt;
&lt;br /&gt;
We have our intro/thesis statement&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
...to the extent that exokernels be seen as a compromise between virtual machines and microkernels. &lt;br /&gt;
-I&#039;ll work on the initial intro, should have it ready by tonight. -Slade&lt;br /&gt;
&lt;br /&gt;
3 paragraphs that prove it&lt;br /&gt;
Explain how the key design characteristics of these three system architectures compare with each other. &lt;br /&gt;
&lt;br /&gt;
and conclusion&lt;/div&gt;</summary>
		<author><name>Slay</name></author>
	</entry>
	<entry>
		<id>https://homeostasis.scs.carleton.ca/wiki/index.php?title=Talk:COMP_3000_Essay_1_2010_Question_1&amp;diff=3298</id>
		<title>Talk:COMP 3000 Essay 1 2010 Question 1</title>
		<link rel="alternate" type="text/html" href="https://homeostasis.scs.carleton.ca/wiki/index.php?title=Talk:COMP_3000_Essay_1_2010_Question_1&amp;diff=3298"/>
		<updated>2010-10-13T18:03:09Z</updated>

		<summary type="html">&lt;p&gt;Slay: /* Unsorted */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Microkernel == &lt;br /&gt;
* Moving kernel functionality into processes contained in user space, e.g. file systems, drivers&lt;br /&gt;
* Keep basic functionality in kernel to handle sharing of resources&lt;br /&gt;
* Separation allows for manageability and security, corruption in one does not necessarily cause failure in system&lt;br /&gt;
* Large amount of moving from a process to Kernel to user space and back again, this is a costly operation.&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039; Microkernel &#039;&#039;&#039;&lt;br /&gt;
* try&#039;s to minimize the amount of software that is mandatory or required [7]&lt;br /&gt;
advantages of Microkernel&lt;br /&gt;
* favors a modular system structure [7]&lt;br /&gt;
* one failure of a program does not impact any other programs [7]&lt;br /&gt;
* can support more than one api or strategies since all programs are separated [7]&lt;br /&gt;
==== Microkernel Concepts ==== &lt;br /&gt;
* piece of code is allowed in the kernel only if moving it outside the kernel would adversely affect the system. [7]&lt;br /&gt;
* any subsystem program created must be independent of all other subsystem&#039;s, any subsystem that is used can guarantee this from all other subsystems [7]&lt;br /&gt;
===== Address Space =====&lt;br /&gt;
* a mapping that relates the physical page to the virtual page. [7]&lt;br /&gt;
* processor specific [7]&lt;br /&gt;
* hide&#039;s the hardware&#039;s concept of address space [7]&lt;br /&gt;
* based off the idea of recursion each subsystem has it&#039;s own address space [7]&lt;br /&gt;
* the micro kernel provides 3 operations [7]&lt;br /&gt;
** Grant [7]&lt;br /&gt;
*** allows the owner to give a page to a recipient, provided the recipient want&#039;s it the page is removed from the owner&#039;s address space and but in the recipients. [7]&lt;br /&gt;
*** must be available to the owner. [7]&lt;br /&gt;
** Map [7]&lt;br /&gt;
*** allows the user to share a page with a recipient [7]&lt;br /&gt;
*** page is not removed from the owner&#039;s address space. [7]&lt;br /&gt;
** Flush [7]&lt;br /&gt;
*** remove&#039;s the page from all recipients address space [7]&lt;br /&gt;
*** how does this work with Grant --[[User:Asoknack|Asoknack]] 19:10, 12 October 2010 (UTC)&lt;br /&gt;
* allows memory management and paging out side the kernel&lt;br /&gt;
* Map and flush is required for memory manger&#039;s and pagers [7]&lt;br /&gt;
* can be used to implement access right&#039;s [7]&lt;br /&gt;
* controlling I/O Right&#039;s and driver&#039;s are not done at kernel level [7]&lt;br /&gt;
&lt;br /&gt;
===== Thread&#039;s IPC =====&lt;br /&gt;
* Threads&lt;br /&gt;
** in the kernel [7]&lt;br /&gt;
** Since a thread has an address space , all changes to the thread need to be done by the kernel [7]&lt;br /&gt;
* IPC [7]&lt;br /&gt;
** in the kernel IPC&lt;br /&gt;
** grant and map also need IPC  (So buye the priciple above this has to be in the kernel)[7]&lt;br /&gt;
** basic way for sub process to communicate. [7]&lt;br /&gt;
* Interrupts&lt;br /&gt;
** partially in the kernel [7]&lt;br /&gt;
** hard ware is a set of thread&#039;s which are empty except for there unique sender id [7]&lt;br /&gt;
** transformation of the message to the interrupt is done in the kernel [7]&lt;br /&gt;
** the kernel is not involved in device - specific interrupt&#039;s and does not understand the interrupt. [7]&lt;br /&gt;
*** resting the interrupt is done at user level [7]&lt;br /&gt;
** if a privileged command is need it is done implicitly the next time an IPC command is sent from the device [7]&lt;br /&gt;
&lt;br /&gt;
===== Unique Identifiers =====&lt;br /&gt;
&lt;br /&gt;
== Virtual Machine ==&lt;br /&gt;
* Partitioning or virtualizing resources among OS virtualization running on top of host OS&lt;br /&gt;
* Virtualized OS believe running on full machine on its own&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
System Level Virtualization&lt;br /&gt;
&lt;br /&gt;
=== VMM ===&lt;br /&gt;
* stands for Virtual Machine Monitor, also known as the hyper-visor[4]&lt;br /&gt;
* responsible for virtualization of hardware(mapping physical to virtual) and the VM that run on top of the virtuallized hardware [4]&lt;br /&gt;
* usually a small os with no drivers , so it is coupled with a linux distro that provides device / hardware access [4]&lt;br /&gt;
** the os that the VMM is using for driver&#039;s is called the hostOS [6]&lt;br /&gt;
*the hostOS provides login and physical access to the hardware as well as management for the VMM [6]&lt;br /&gt;
=== VM ===&lt;br /&gt;
* the OS that the vm is running is called the guestOS [6]&lt;br /&gt;
* the guestOS only sees resources that have been allocated to the VM [6]&lt;br /&gt;
==== three approaches ====&lt;br /&gt;
*Type I virtualization [5]&lt;br /&gt;
** runs off the physical hardware [4]&lt;br /&gt;
** Isolation of the guestOs from the hardware is done threw processe level protection meachnism[6]&lt;br /&gt;
*** ring 0 = VMM [6]&lt;br /&gt;
*** ring 1 = VM [6]&lt;br /&gt;
*** this means all instructions from the VM must go threw the VMM [6]&lt;br /&gt;
** since there can be multiple VM&#039;s on a computer the scheduling is done by the VMM [6]&lt;br /&gt;
** on boot the VMM creates a hardware platform for the VM [6]&lt;br /&gt;
** load&#039;s the VM kernel into virtual memory and then boot&#039;s it like a regular computer [6]&lt;br /&gt;
** ex. Xen [4]&lt;br /&gt;
*Type II virtualization [5]&lt;br /&gt;
** run off the host Os [4]&lt;br /&gt;
** ex. VMware , QEMU [4]&lt;br /&gt;
* Para-virtualization [6]&lt;br /&gt;
** Similar to Type but use the HostOs for Device driver access [6]&lt;br /&gt;
&lt;br /&gt;
== Exokernel ==&lt;br /&gt;
* Micro-kernel architecture with limited abstractions, ask for resource, get resource not resource abstraction&lt;br /&gt;
* Less functionality provided by kernel, security and handling of resource sharing&lt;br /&gt;
* Once application receives resource, it can use it as it wishes/in control&lt;br /&gt;
* Keep the basic kernel to handle allocating resources and sharing rather than developing straight to the hardware&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
* multiplex resources securely providing protection to mutual distrustful application threw the use of secure binding&#039;s[1]&lt;br /&gt;
* Goal of the exokernel is to give LibOS maximum freedom with out allowing them to interfere with each other. to do this the exokernel separates protection from management in doing this it provide 3 important tasks[1]&lt;br /&gt;
** tracking ownership of resources [1]&lt;br /&gt;
** ensuring protection by guarding all resource usage and binding points (not to shure what binding points are)[1]&lt;br /&gt;
** revoking access to the resources [1]&lt;br /&gt;
* LibrayOS (LibOs)&lt;br /&gt;
** Reduces the number of kernel crossings[1]&lt;br /&gt;
** Not trusted by the exokernel so can be trusted by the application , Example given is a bad parameter passed to the LibOs only the application is affected.[1] (So LibOs cant interact with kernel ???)&lt;br /&gt;
** Any application running on the Exokernel can change the LibrayOs freely [1]&lt;br /&gt;
** Application that use LibOS that implement standard interfaces (POSIX) will be portable on any system with the same interface [1]&lt;br /&gt;
** LibOs can be made portable if it is designed to interact with a low-level machine independent level to hide hardware details [1]&lt;br /&gt;
&lt;br /&gt;
=== Exokernel Design ===&lt;br /&gt;
==== Design Principles ====&lt;br /&gt;
*Securely Expose Hardware [1]&lt;br /&gt;
** an Exokernel tries to create low level primitives that the hardware resources can be accessed from, this also includes interrupts,exceptions [1]&lt;br /&gt;
** the exokernel also export privileged instructions to the LibOS so that traditional OS abstractions can be implemented (eg Process , address pace)[1]&lt;br /&gt;
** Exokernels should avoid resource management except when required protection ( allocation , revocation , ownership)[1]&lt;br /&gt;
** application based resource management is the best way to build flexible efficient flexible systems [1]&lt;br /&gt;
*Expose allocation[1]&lt;br /&gt;
** allow LibOs to request physical resources [1]&lt;br /&gt;
** resource allocation should not be automatic, the LibOS should participate in every single allocation decision [1]&lt;br /&gt;
*Expose Names[1]&lt;br /&gt;
** Use physical name&#039;s when ever possible[3] (not to sure what physical names are, I think it is as simple as what the hardware is called)--[[User:Asoknack|Asoknack]] 20:27, 9 October 2010 (UTC)&lt;br /&gt;
** Physical names capture useful information [3]&lt;br /&gt;
*** safer than and less resource intensive than virtual names as no translations are needed[3]&lt;br /&gt;
*Expose Revocation [1]&lt;br /&gt;
** use visible revocation protocol [1]&lt;br /&gt;
** allows well behaved LibOS to preform application level resource management [1]&lt;br /&gt;
** Visible revocation allows the LibOS to choose what instance of the resource to release[1](Visible means that when revocation happens the exokernel tell the LibOS that resource is being revoked)&lt;br /&gt;
&#039;&#039;&#039; Policy &#039;&#039;&#039;&lt;br /&gt;
* LibOS handle resource policy decisions&lt;br /&gt;
* Exokernels have a policy to decided between competing LibOS (Priority , share of resources)&lt;br /&gt;
** it enforces this threw allocation and deallocation (every thing can achieved threw this even what block to write and such)&lt;br /&gt;
&lt;br /&gt;
==== Secure Bindings ====&lt;br /&gt;
* Used by the exokernel to allow the LibOS to bind to resources [1]&lt;br /&gt;
* Allows the separation of protection and resource use [1]&lt;br /&gt;
* only checks authorization during bind time [1]&lt;br /&gt;
** Application&#039;s with complex needs for resources only authorized during bind.[1]&lt;br /&gt;
* access checking is done during access time and there is no need to understand complex resources needs during access[1]&lt;br /&gt;
** (this means that the exokernel checks once to make sure an application has authorization once approved, when the application tries to use the resource the exokernel is only concerned about policy conflict&#039;s)--[[User:Asoknack|Asoknack]] 18:20, 9 October 2010 (UTC)&lt;br /&gt;
** allows the kernel to protect the resources with out understanding what the resource is [1]&lt;br /&gt;
*three way&#039;s to implement&lt;br /&gt;
* Hardware Mechanisms [1]&lt;br /&gt;
* Software caching [1]&lt;br /&gt;
* Downloading application code [1]&lt;br /&gt;
&#039;&#039;&#039; Downloading Code to the Kernel &#039;&#039;&#039;&lt;br /&gt;
* used to implement secure bindings , and improve performance[1]&lt;br /&gt;
** eliminate the number of kernel crossings [1]&lt;br /&gt;
** downloaded code can be run with out the application to be scheduled [2]&lt;br /&gt;
==== Visible Resource Revocation ====&lt;br /&gt;
* Used for most resources [1]&lt;br /&gt;
** allows for LibOS to help with deallocation [1]&lt;br /&gt;
** LibOS are able to garner what resources are scare [1]&lt;br /&gt;
* Slower than Invisible as application involvement is required [1]&lt;br /&gt;
** ex of when invisible is used is Processor addressing-context identifiers [1]&lt;br /&gt;
==== Abort Protocol ====&lt;br /&gt;
* allows the exokernel to take resources away from the LibOS [1]&lt;br /&gt;
* used when the LibOS fails to respond to the revocation request [1]&lt;br /&gt;
* Exokernel must be careful not to delete as the LibOS might need to write some system critical data to the resource [1]&lt;br /&gt;
&lt;br /&gt;
== Comparisons  ==&lt;br /&gt;
====Exokernel/Microkernel====&lt;br /&gt;
&#039;&#039;&#039;Similarities&#039;&#039;&#039;&lt;br /&gt;
* Limited functionality in kernel&lt;br /&gt;
** functionality in kernel to handle sharing of resources and security&lt;br /&gt;
** avoids programming directly to hardware which creates a dependency&lt;br /&gt;
* Additional functionality provided in user space as processes&lt;br /&gt;
&#039;&#039;&#039;Differences&#039;&#039;&#039;&lt;br /&gt;
* Minimal abstractions provided by the kernel&lt;br /&gt;
** Applications given more power in exokernel&lt;br /&gt;
&lt;br /&gt;
====Exokernel/VM====&lt;br /&gt;
&#039;&#039;&#039;Similarities&#039;&#039;&#039;&lt;br /&gt;
* Idea of partitioning resources between applications/OSs&lt;br /&gt;
* &amp;quot;Control&amp;quot; of resource given&lt;br /&gt;
* Isolation from other applications/OSs&lt;br /&gt;
&#039;&#039;&#039;Differences&#039;&#039;&#039;&lt;br /&gt;
* Exokernel runs applications, VM runs OS&lt;br /&gt;
* VM uses a hostOS and guestOSs run on top&lt;br /&gt;
* Virtualization on VMs, Exokernel deals with real resources&lt;br /&gt;
* VM hides a lot of information because it emulates. Exokernel does not.&lt;br /&gt;
&lt;br /&gt;
====Microkernel/VM====&lt;br /&gt;
&#039;&#039;&#039;Differences&#039;&#039;&#039;&lt;br /&gt;
* With a virtual machine, you are not virtualizing apps like with a microkernel but virtualizing an entire Operating System.&lt;br /&gt;
* This can be costly but the benefits are that it&#039;s easier and all the standard OS features are available.&lt;br /&gt;
&lt;br /&gt;
== References ==&lt;br /&gt;
[1]&amp;lt;nowiki&amp;gt; Engler, D. R., Kaashoek, M. F., and O&#039;Toole, J. 1995. Exokernel: an operating system architecture for application-level resource management. In Proceedings of the Fifteenth ACM Symposium on Operating Systems Principles  (Copper Mountain, Colorado, United States, December 03 - 06, 1995). M. B. Jones, Ed. SOSP &#039;95. ACM, New York, NY, 251-266. DOI= http://doi.acm.org/10.1145/224056.224076 &amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[2]&amp;lt;nowiki&amp;gt;Engler, Dawson R. &amp;quot;The Exokernel Operating System Architecture.&amp;quot; Diss. Massachusetts Institute of Technology, Dept. of Electrical Engineering and Computer Science, 1998. Web. 9 Oct. 2010. &amp;lt;http://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.61.5054&amp;amp;rep=rep1&amp;amp;type=pdf&amp;gt;.&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[3]&amp;lt;nowiki&amp;gt;Kaashoek, M. F., Engler, D. R., Ganger, G. R., Briceño, H. M., Hunt, R., Mazières, D., Pinckney, T., Grimm, R., Jannotti, J., and Mackenzie, K. 1997. Application performance and flexibility on exokernel systems. In Proceedings of the Sixteenth ACM Symposium on Operating Systems Principles  (Saint Malo, France, October 05 - 08, 1997). W. M. Waite, Ed. SOSP &#039;97. ACM, New York, NY, 52-65. DOI= http://doi.acm.org/10.1145/268998.266644 &amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[4]&amp;lt;nowiki&amp;gt;Vallee, G.; Naughton, T.; Engelmann, C.; Hong Ong; Scott, S.L.; , &amp;quot;System-Level Virtualization for High Performance Computing,&amp;quot; Parallel, Distributed and Network-Based Processing, 2008. PDP 2008. 16th Euromicro Conference on , vol., no., pp.636-643, 13-15 Feb. 2008&lt;br /&gt;
DOI= http://doi.acm.org/10.1109/PDP.2008.85 &amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[5]&amp;lt;nowiki&amp;gt;Goldberg, R. P. 1973. Architecture of virtual machines. In Proceedings of the Workshop on Virtual Computer Systems  (Cambridge, Massachusetts, United States, March 26 - 27, 1973). ACM, New York, NY, 74-112. DOI= http://doi.acm.org/10.1145/800122.803950 &amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[6]&amp;lt;nowiki&amp;gt;Vallee, G., Naughton, T., and Scott, S. L. 2007. System management software for virtual environments. In Proceedings of the 4th international Conference on Computing Frontiers (Ischia, Italy, May 07 - 09, 2007). CF &#039;07. ACM, New York, NY, 153-160. DOI= http://doi.acm.org/10.1145/1242531.1242555 &amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[7]&amp;lt;nowiki&amp;gt;Liedtke, J. 1995. On micro-kernel construction. In Proceedings of the Fifteenth ACM Symposium on Operating Systems Principles  (Copper Mountain, Colorado, United States, December 03 - 06, 1995). M. B. Jones, Ed. SOSP &#039;95. ACM, New York, NY, 237-250. DOI= http://doi.acm.org/10.1145/224056.224075 &amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Unsorted ==&lt;br /&gt;
An overview of exokernels,virtual machines, microkernels *[http://www2.supchurch.org:10999/files/school/classes/CSCI4730/Lectures/grad-structures.ppt Overview](Power Point)&amp;lt;br&amp;gt;&lt;br /&gt;
Should not be used as a source but an overview.&lt;br /&gt;
&lt;br /&gt;
The original paper on [http://portal.acm.org/citation.cfm?id=224076 Exokernels] --[[User:Gautam|Gautam]] 22:39, 6 October 2010 (UTC)&lt;br /&gt;
&lt;br /&gt;
Exokernel-&lt;br /&gt;
Minimalistic abstractions for developers&lt;br /&gt;
Exokernels can be seen as a good compromise between virtual machines and microkernels in the sense that exokernels can give that low level access to developers similar to direct access through a protected layer and at the same time can contain enough hardware abstraction to allow similar benefit of hiding the hardware resources to application programs.&lt;br /&gt;
Exokernel – fewest hardware abstractions to developer&lt;br /&gt;
Microkernel - is the near-minimum amount of software that can provide the mechanisms needed to implement an operating system&lt;br /&gt;
Virtual machine is a simulation of any or devices requested by an application program&lt;br /&gt;
Exokenel – I’ve got a sound card&lt;br /&gt;
Virtual Machine – I’ve got the sound card you’re looking for, perfect virtual match&lt;br /&gt;
Microkernel – I’ve got sound card that plays Khazikstan sound format only&lt;br /&gt;
MicroKernel - Very small, very predictable, good for schedualing (QNX is a microkernel - POSIX compatable, benefits of running linux software like modern browsers) &lt;br /&gt;
&lt;br /&gt;
This is some ideas I&#039;ve got on this question, please contribute below&lt;br /&gt;
-Rovic&lt;br /&gt;
&lt;br /&gt;
Outlining some main features here as I see them.&lt;br /&gt;
&lt;br /&gt;
I found that the exokernel was an even lower-level design than the microkernel, closer to the hardware without abstraction. They have the same architecture with the basic functionality contained in the kernel to manage everyone. As the exokernel &amp;quot;gives&amp;quot; the resource to the application it can use the resource in isolation of other applications (until forced to shared) much like VMs receive their resources, either partitioned or virtualized, and execute as if its running on its own machine. There is this similar notion of partitioning the resources among applications/OS and allowing them to take control of what they have. &lt;br /&gt;
&lt;br /&gt;
I&#039;ll locate some references later on. --[[User:Slay|Slay]] 15:00, 7 October 2010 (UTC)&lt;br /&gt;
&lt;br /&gt;
I&#039;m just going to post my answer for question 1 on the individuel assignment and hope it helps. --[[User:Aellebla|Aellebla]] 15:06, 12 October 2010 (UTC)&lt;br /&gt;
&lt;br /&gt;
The design of the micro kernel was to take everything they could out of the Kernel and put it into a process. For ex, networking would be put into a process instead of staying in the kernel. The micro kernel dev&#039;s tried to keep lots of things in user space for efficiency. But one major problem with this is there would be a large amount of moving from a process to the kernel to user space and back again and this is a costly, non efficient process.It was an application specific OS, there was no multiplexing. With a virtual machine you are not virtualizing apps like with a microkernel but virtualizing an entire Operating System. This is very heavy however but the benefits are that it‟s easy and all the standard OS features are there whereas in a microkernel setup they would not all be there and this can be seen as a compromise.&lt;br /&gt;
&lt;br /&gt;
Exokernels can be seen as a compromise to virtual machines and microkernels because virtual machines emulate and exokernels do not. When you emulate something you hide a lot of the actual information because you wouldn‟t be able to see the „real‟ hardware. If we look at a virtual box setup running Linux, and we go look at all the hardware, it will be displayed as fake hardware.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Maybe we can have an introduction - paragraph or so on each type - then similarities - differences - and the compromise.  I am going to do some research and writing this weekend and I will put some up  -- Jslonosky&lt;br /&gt;
&lt;br /&gt;
btw in my page (i guess you can call it that) i have some resources i have found  --[[User:Asoknack|Asoknack]] 15:50, 8 October 2010 (UTC)&lt;br /&gt;
- Wow, nice man. I will go ahead and write up the descriptive paragraphs on each kernel and virtual machine if no one minds. --Jslonosky&lt;br /&gt;
&lt;br /&gt;
I think we should divide up the paragraphs and proofread each others instead. (Are there only 4 of us?) I don&#039;t have much time to work on this today though but I&#039;ll try to work on it tomorrow morning. - Slay&lt;br /&gt;
&lt;br /&gt;
Sure guy.  That sounds good.  There should be 5 or 6 of us though.. . Oh well. Their loss.  I will do some before or after work today. Ill start with Microkernel since there is not a large amount of info here, and so we don&#039;t overlap each other - JSlonosky&lt;br /&gt;
&lt;br /&gt;
yeah i think there was more like 7 of us btw if any one has any more information feel free to add it would be nice if you add the references so that way citing is really easy on  acm.org it will auto give you the citation info (where it says Display Formats click on ACM Ref  and new window with the citation info auto pop&#039;s up) --[[User:Asoknack|Asoknack]] 02:28, 11 October 2010 (UTC)&lt;br /&gt;
&lt;br /&gt;
I added an outline of the similarities and differences. Add any more that I missed. These are from observations so I don&#039;t have any resources. -Slay&lt;br /&gt;
That&#039;s probably fine.  Our textbook probably outlines some of them, so I am sure we can find a few there - JSlonosky&lt;br /&gt;
&lt;br /&gt;
Talked to the teacher today and for VM he said we should focus on the implementation such as Xen and VMware , he also said to talk about para virtualization --[[User:Asoknack|Asoknack]] 18:42, 12 October 2010 (UTC)&lt;br /&gt;
&lt;br /&gt;
A paper about emulation and paravirtualization [http://portal.acm.org/citation.cfm?id=1189289&amp;amp;coll=GUIDE&amp;amp;dl=GUIDE&amp;amp;CFID=105648137&amp;amp;CFTOKEN=47153176&amp;amp;ret=1#Fulltext link] - Slay&lt;br /&gt;
&lt;br /&gt;
Oh no big words.  Sorry about the Microkernels not done yet.  Working on an outline now.  Finally found how to access the ACM through carleton.  Gawd. &lt;br /&gt;
I am planning an outline, quick bit about kernels in general, (maybe mention monolith kernels?), and what microkernels do.&lt;br /&gt;
I see the microkernel outline info and a reference ( Whomever did that == hero: true) about the scheduling and the Memory management.  Should that be included in kernels in general and then mention what microkernels build upon/change? - JSlonosky&lt;br /&gt;
&lt;br /&gt;
== The Essay ==&lt;br /&gt;
&lt;br /&gt;
Let&#039;s actually breakdown the essay into components then write it here.&lt;br /&gt;
&lt;br /&gt;
I&#039;d like to go along the premise that microkernels and and virtual machines are &amp;quot;weaker&amp;quot; than exokernels in design for the essay. If anyone has any objections, add it here. &lt;br /&gt;
&lt;br /&gt;
-Slade&lt;br /&gt;
&lt;br /&gt;
 what do you mean by &amp;quot;weaker&amp;quot;(i think you mean exokernels&#039; takes the best of both worlds ) --[[User:Asoknack|Asoknack]] 02:45, 13 October 2010 (UTC)&lt;br /&gt;
&lt;br /&gt;
We have our intro/thesis statement&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
...to the extent that exokernels be seen as a compromise between virtual machines and microkernels. &lt;br /&gt;
-I&#039;ll work on the initial intro, should have it ready by tonight. -Slade&lt;br /&gt;
&lt;br /&gt;
3 paragraphs that prove it&lt;br /&gt;
Explain how the key design characteristics of these three system architectures compare with each other. &lt;br /&gt;
&lt;br /&gt;
and conclusion&lt;/div&gt;</summary>
		<author><name>Slay</name></author>
	</entry>
	<entry>
		<id>https://homeostasis.scs.carleton.ca/wiki/index.php?title=Talk:COMP_3000_Essay_1_2010_Question_1&amp;diff=3297</id>
		<title>Talk:COMP 3000 Essay 1 2010 Question 1</title>
		<link rel="alternate" type="text/html" href="https://homeostasis.scs.carleton.ca/wiki/index.php?title=Talk:COMP_3000_Essay_1_2010_Question_1&amp;diff=3297"/>
		<updated>2010-10-13T18:02:23Z</updated>

		<summary type="html">&lt;p&gt;Slay: /* Unsorted */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Microkernel == &lt;br /&gt;
* Moving kernel functionality into processes contained in user space, e.g. file systems, drivers&lt;br /&gt;
* Keep basic functionality in kernel to handle sharing of resources&lt;br /&gt;
* Separation allows for manageability and security, corruption in one does not necessarily cause failure in system&lt;br /&gt;
* Large amount of moving from a process to Kernel to user space and back again, this is a costly operation.&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039; Microkernel &#039;&#039;&#039;&lt;br /&gt;
* try&#039;s to minimize the amount of software that is mandatory or required [7]&lt;br /&gt;
advantages of Microkernel&lt;br /&gt;
* favors a modular system structure [7]&lt;br /&gt;
* one failure of a program does not impact any other programs [7]&lt;br /&gt;
* can support more than one api or strategies since all programs are separated [7]&lt;br /&gt;
==== Microkernel Concepts ==== &lt;br /&gt;
* piece of code is allowed in the kernel only if moving it outside the kernel would adversely affect the system. [7]&lt;br /&gt;
* any subsystem program created must be independent of all other subsystem&#039;s, any subsystem that is used can guarantee this from all other subsystems [7]&lt;br /&gt;
===== Address Space =====&lt;br /&gt;
* a mapping that relates the physical page to the virtual page. [7]&lt;br /&gt;
* processor specific [7]&lt;br /&gt;
* hide&#039;s the hardware&#039;s concept of address space [7]&lt;br /&gt;
* based off the idea of recursion each subsystem has it&#039;s own address space [7]&lt;br /&gt;
* the micro kernel provides 3 operations [7]&lt;br /&gt;
** Grant [7]&lt;br /&gt;
*** allows the owner to give a page to a recipient, provided the recipient want&#039;s it the page is removed from the owner&#039;s address space and but in the recipients. [7]&lt;br /&gt;
*** must be available to the owner. [7]&lt;br /&gt;
** Map [7]&lt;br /&gt;
*** allows the user to share a page with a recipient [7]&lt;br /&gt;
*** page is not removed from the owner&#039;s address space. [7]&lt;br /&gt;
** Flush [7]&lt;br /&gt;
*** remove&#039;s the page from all recipients address space [7]&lt;br /&gt;
*** how does this work with Grant --[[User:Asoknack|Asoknack]] 19:10, 12 October 2010 (UTC)&lt;br /&gt;
* allows memory management and paging out side the kernel&lt;br /&gt;
* Map and flush is required for memory manger&#039;s and pagers [7]&lt;br /&gt;
* can be used to implement access right&#039;s [7]&lt;br /&gt;
* controlling I/O Right&#039;s and driver&#039;s are not done at kernel level [7]&lt;br /&gt;
&lt;br /&gt;
===== Thread&#039;s IPC =====&lt;br /&gt;
* Threads&lt;br /&gt;
** in the kernel [7]&lt;br /&gt;
** Since a thread has an address space , all changes to the thread need to be done by the kernel [7]&lt;br /&gt;
* IPC [7]&lt;br /&gt;
** in the kernel IPC&lt;br /&gt;
** grant and map also need IPC  (So buye the priciple above this has to be in the kernel)[7]&lt;br /&gt;
** basic way for sub process to communicate. [7]&lt;br /&gt;
* Interrupts&lt;br /&gt;
** partially in the kernel [7]&lt;br /&gt;
** hard ware is a set of thread&#039;s which are empty except for there unique sender id [7]&lt;br /&gt;
** transformation of the message to the interrupt is done in the kernel [7]&lt;br /&gt;
** the kernel is not involved in device - specific interrupt&#039;s and does not understand the interrupt. [7]&lt;br /&gt;
*** resting the interrupt is done at user level [7]&lt;br /&gt;
** if a privileged command is need it is done implicitly the next time an IPC command is sent from the device [7]&lt;br /&gt;
&lt;br /&gt;
===== Unique Identifiers =====&lt;br /&gt;
&lt;br /&gt;
== Virtual Machine ==&lt;br /&gt;
* Partitioning or virtualizing resources among OS virtualization running on top of host OS&lt;br /&gt;
* Virtualized OS believe running on full machine on its own&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
System Level Virtualization&lt;br /&gt;
&lt;br /&gt;
=== VMM ===&lt;br /&gt;
* stands for Virtual Machine Monitor, also known as the hyper-visor[4]&lt;br /&gt;
* responsible for virtualization of hardware(mapping physical to virtual) and the VM that run on top of the virtuallized hardware [4]&lt;br /&gt;
* usually a small os with no drivers , so it is coupled with a linux distro that provides device / hardware access [4]&lt;br /&gt;
** the os that the VMM is using for driver&#039;s is called the hostOS [6]&lt;br /&gt;
*the hostOS provides login and physical access to the hardware as well as management for the VMM [6]&lt;br /&gt;
=== VM ===&lt;br /&gt;
* the OS that the vm is running is called the guestOS [6]&lt;br /&gt;
* the guestOS only sees resources that have been allocated to the VM [6]&lt;br /&gt;
==== three approaches ====&lt;br /&gt;
*Type I virtualization [5]&lt;br /&gt;
** runs off the physical hardware [4]&lt;br /&gt;
** Isolation of the guestOs from the hardware is done threw processe level protection meachnism[6]&lt;br /&gt;
*** ring 0 = VMM [6]&lt;br /&gt;
*** ring 1 = VM [6]&lt;br /&gt;
*** this means all instructions from the VM must go threw the VMM [6]&lt;br /&gt;
** since there can be multiple VM&#039;s on a computer the scheduling is done by the VMM [6]&lt;br /&gt;
** on boot the VMM creates a hardware platform for the VM [6]&lt;br /&gt;
** load&#039;s the VM kernel into virtual memory and then boot&#039;s it like a regular computer [6]&lt;br /&gt;
** ex. Xen [4]&lt;br /&gt;
*Type II virtualization [5]&lt;br /&gt;
** run off the host Os [4]&lt;br /&gt;
** ex. VMware , QEMU [4]&lt;br /&gt;
* Para-virtualization [6]&lt;br /&gt;
** Similar to Type but use the HostOs for Device driver access [6]&lt;br /&gt;
&lt;br /&gt;
== Exokernel ==&lt;br /&gt;
* Micro-kernel architecture with limited abstractions, ask for resource, get resource not resource abstraction&lt;br /&gt;
* Less functionality provided by kernel, security and handling of resource sharing&lt;br /&gt;
* Once application receives resource, it can use it as it wishes/in control&lt;br /&gt;
* Keep the basic kernel to handle allocating resources and sharing rather than developing straight to the hardware&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
* multiplex resources securely providing protection to mutual distrustful application threw the use of secure binding&#039;s[1]&lt;br /&gt;
* Goal of the exokernel is to give LibOS maximum freedom with out allowing them to interfere with each other. to do this the exokernel separates protection from management in doing this it provide 3 important tasks[1]&lt;br /&gt;
** tracking ownership of resources [1]&lt;br /&gt;
** ensuring protection by guarding all resource usage and binding points (not to shure what binding points are)[1]&lt;br /&gt;
** revoking access to the resources [1]&lt;br /&gt;
* LibrayOS (LibOs)&lt;br /&gt;
** Reduces the number of kernel crossings[1]&lt;br /&gt;
** Not trusted by the exokernel so can be trusted by the application , Example given is a bad parameter passed to the LibOs only the application is affected.[1] (So LibOs cant interact with kernel ???)&lt;br /&gt;
** Any application running on the Exokernel can change the LibrayOs freely [1]&lt;br /&gt;
** Application that use LibOS that implement standard interfaces (POSIX) will be portable on any system with the same interface [1]&lt;br /&gt;
** LibOs can be made portable if it is designed to interact with a low-level machine independent level to hide hardware details [1]&lt;br /&gt;
&lt;br /&gt;
=== Exokernel Design ===&lt;br /&gt;
==== Design Principles ====&lt;br /&gt;
*Securely Expose Hardware [1]&lt;br /&gt;
** an Exokernel tries to create low level primitives that the hardware resources can be accessed from, this also includes interrupts,exceptions [1]&lt;br /&gt;
** the exokernel also export privileged instructions to the LibOS so that traditional OS abstractions can be implemented (eg Process , address pace)[1]&lt;br /&gt;
** Exokernels should avoid resource management except when required protection ( allocation , revocation , ownership)[1]&lt;br /&gt;
** application based resource management is the best way to build flexible efficient flexible systems [1]&lt;br /&gt;
*Expose allocation[1]&lt;br /&gt;
** allow LibOs to request physical resources [1]&lt;br /&gt;
** resource allocation should not be automatic, the LibOS should participate in every single allocation decision [1]&lt;br /&gt;
*Expose Names[1]&lt;br /&gt;
** Use physical name&#039;s when ever possible[3] (not to sure what physical names are, I think it is as simple as what the hardware is called)--[[User:Asoknack|Asoknack]] 20:27, 9 October 2010 (UTC)&lt;br /&gt;
** Physical names capture useful information [3]&lt;br /&gt;
*** safer than and less resource intensive than virtual names as no translations are needed[3]&lt;br /&gt;
*Expose Revocation [1]&lt;br /&gt;
** use visible revocation protocol [1]&lt;br /&gt;
** allows well behaved LibOS to preform application level resource management [1]&lt;br /&gt;
** Visible revocation allows the LibOS to choose what instance of the resource to release[1](Visible means that when revocation happens the exokernel tell the LibOS that resource is being revoked)&lt;br /&gt;
&#039;&#039;&#039; Policy &#039;&#039;&#039;&lt;br /&gt;
* LibOS handle resource policy decisions&lt;br /&gt;
* Exokernels have a policy to decided between competing LibOS (Priority , share of resources)&lt;br /&gt;
** it enforces this threw allocation and deallocation (every thing can achieved threw this even what block to write and such)&lt;br /&gt;
&lt;br /&gt;
==== Secure Bindings ====&lt;br /&gt;
* Used by the exokernel to allow the LibOS to bind to resources [1]&lt;br /&gt;
* Allows the separation of protection and resource use [1]&lt;br /&gt;
* only checks authorization during bind time [1]&lt;br /&gt;
** Application&#039;s with complex needs for resources only authorized during bind.[1]&lt;br /&gt;
* access checking is done during access time and there is no need to understand complex resources needs during access[1]&lt;br /&gt;
** (this means that the exokernel checks once to make sure an application has authorization once approved, when the application tries to use the resource the exokernel is only concerned about policy conflict&#039;s)--[[User:Asoknack|Asoknack]] 18:20, 9 October 2010 (UTC)&lt;br /&gt;
** allows the kernel to protect the resources with out understanding what the resource is [1]&lt;br /&gt;
*three way&#039;s to implement&lt;br /&gt;
* Hardware Mechanisms [1]&lt;br /&gt;
* Software caching [1]&lt;br /&gt;
* Downloading application code [1]&lt;br /&gt;
&#039;&#039;&#039; Downloading Code to the Kernel &#039;&#039;&#039;&lt;br /&gt;
* used to implement secure bindings , and improve performance[1]&lt;br /&gt;
** eliminate the number of kernel crossings [1]&lt;br /&gt;
** downloaded code can be run with out the application to be scheduled [2]&lt;br /&gt;
==== Visible Resource Revocation ====&lt;br /&gt;
* Used for most resources [1]&lt;br /&gt;
** allows for LibOS to help with deallocation [1]&lt;br /&gt;
** LibOS are able to garner what resources are scare [1]&lt;br /&gt;
* Slower than Invisible as application involvement is required [1]&lt;br /&gt;
** ex of when invisible is used is Processor addressing-context identifiers [1]&lt;br /&gt;
==== Abort Protocol ====&lt;br /&gt;
* allows the exokernel to take resources away from the LibOS [1]&lt;br /&gt;
* used when the LibOS fails to respond to the revocation request [1]&lt;br /&gt;
* Exokernel must be careful not to delete as the LibOS might need to write some system critical data to the resource [1]&lt;br /&gt;
&lt;br /&gt;
== Comparisons  ==&lt;br /&gt;
====Exokernel/Microkernel====&lt;br /&gt;
&#039;&#039;&#039;Similarities&#039;&#039;&#039;&lt;br /&gt;
* Limited functionality in kernel&lt;br /&gt;
** functionality in kernel to handle sharing of resources and security&lt;br /&gt;
** avoids programming directly to hardware which creates a dependency&lt;br /&gt;
* Additional functionality provided in user space as processes&lt;br /&gt;
&#039;&#039;&#039;Differences&#039;&#039;&#039;&lt;br /&gt;
* Minimal abstractions provided by the kernel&lt;br /&gt;
** Applications given more power in exokernel&lt;br /&gt;
&lt;br /&gt;
====Exokernel/VM====&lt;br /&gt;
&#039;&#039;&#039;Similarities&#039;&#039;&#039;&lt;br /&gt;
* Idea of partitioning resources between applications/OSs&lt;br /&gt;
* &amp;quot;Control&amp;quot; of resource given&lt;br /&gt;
* Isolation from other applications/OSs&lt;br /&gt;
&#039;&#039;&#039;Differences&#039;&#039;&#039;&lt;br /&gt;
* Exokernel runs applications, VM runs OS&lt;br /&gt;
* VM uses a hostOS and guestOSs run on top&lt;br /&gt;
* Virtualization on VMs, Exokernel deals with real resources&lt;br /&gt;
* VM hides a lot of information because it emulates. Exokernel does not.&lt;br /&gt;
&lt;br /&gt;
====Microkernel/VM====&lt;br /&gt;
&#039;&#039;&#039;Differences&#039;&#039;&#039;&lt;br /&gt;
* With a virtual machine, you are not virtualizing apps like with a microkernel but virtualizing an entire Operating System.&lt;br /&gt;
* This can be costly but the benefits are that it&#039;s easier and all the standard OS features are available.&lt;br /&gt;
&lt;br /&gt;
== References ==&lt;br /&gt;
[1]&amp;lt;nowiki&amp;gt; Engler, D. R., Kaashoek, M. F., and O&#039;Toole, J. 1995. Exokernel: an operating system architecture for application-level resource management. In Proceedings of the Fifteenth ACM Symposium on Operating Systems Principles  (Copper Mountain, Colorado, United States, December 03 - 06, 1995). M. B. Jones, Ed. SOSP &#039;95. ACM, New York, NY, 251-266. DOI= http://doi.acm.org/10.1145/224056.224076 &amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[2]&amp;lt;nowiki&amp;gt;Engler, Dawson R. &amp;quot;The Exokernel Operating System Architecture.&amp;quot; Diss. Massachusetts Institute of Technology, Dept. of Electrical Engineering and Computer Science, 1998. Web. 9 Oct. 2010. &amp;lt;http://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.61.5054&amp;amp;rep=rep1&amp;amp;type=pdf&amp;gt;.&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[3]&amp;lt;nowiki&amp;gt;Kaashoek, M. F., Engler, D. R., Ganger, G. R., Briceño, H. M., Hunt, R., Mazières, D., Pinckney, T., Grimm, R., Jannotti, J., and Mackenzie, K. 1997. Application performance and flexibility on exokernel systems. In Proceedings of the Sixteenth ACM Symposium on Operating Systems Principles  (Saint Malo, France, October 05 - 08, 1997). W. M. Waite, Ed. SOSP &#039;97. ACM, New York, NY, 52-65. DOI= http://doi.acm.org/10.1145/268998.266644 &amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[4]&amp;lt;nowiki&amp;gt;Vallee, G.; Naughton, T.; Engelmann, C.; Hong Ong; Scott, S.L.; , &amp;quot;System-Level Virtualization for High Performance Computing,&amp;quot; Parallel, Distributed and Network-Based Processing, 2008. PDP 2008. 16th Euromicro Conference on , vol., no., pp.636-643, 13-15 Feb. 2008&lt;br /&gt;
DOI= http://doi.acm.org/10.1109/PDP.2008.85 &amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[5]&amp;lt;nowiki&amp;gt;Goldberg, R. P. 1973. Architecture of virtual machines. In Proceedings of the Workshop on Virtual Computer Systems  (Cambridge, Massachusetts, United States, March 26 - 27, 1973). ACM, New York, NY, 74-112. DOI= http://doi.acm.org/10.1145/800122.803950 &amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[6]&amp;lt;nowiki&amp;gt;Vallee, G., Naughton, T., and Scott, S. L. 2007. System management software for virtual environments. In Proceedings of the 4th international Conference on Computing Frontiers (Ischia, Italy, May 07 - 09, 2007). CF &#039;07. ACM, New York, NY, 153-160. DOI= http://doi.acm.org/10.1145/1242531.1242555 &amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[7]&amp;lt;nowiki&amp;gt;Liedtke, J. 1995. On micro-kernel construction. In Proceedings of the Fifteenth ACM Symposium on Operating Systems Principles  (Copper Mountain, Colorado, United States, December 03 - 06, 1995). M. B. Jones, Ed. SOSP &#039;95. ACM, New York, NY, 237-250. DOI= http://doi.acm.org/10.1145/224056.224075 &amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Unsorted ==&lt;br /&gt;
An overview of exokernels,virtual machines, microkernels *[http://www2.supchurch.org:10999/files/school/classes/CSCI4730/Lectures/grad-structures.ppt Overview](Power Point)&amp;lt;br&amp;gt;&lt;br /&gt;
Should not be used as a source but an overview.&lt;br /&gt;
&lt;br /&gt;
The original paper on [http://portal.acm.org/citation.cfm?id=224076 Exokernels] --[[User:Gautam|Gautam]] 22:39, 6 October 2010 (UTC)&lt;br /&gt;
&lt;br /&gt;
Exokernel-&lt;br /&gt;
Minimalistic abstractions for developers&lt;br /&gt;
Exokernels can be seen as a good compromise between virtual machines and microkernels in the sense that exokernels can give that low level access to developers similar to direct access through a protected layer and at the same time can contain enough hardware abstraction to allow similar benefit of hiding the hardware resources to application programs.&lt;br /&gt;
Exokernel – fewest hardware abstractions to developer&lt;br /&gt;
Microkernel - is the near-minimum amount of software that can provide the mechanisms needed to implement an operating system&lt;br /&gt;
Virtual machine is a simulation of any or devices requested by an application program&lt;br /&gt;
Exokenel – I’ve got a sound card&lt;br /&gt;
Virtual Machine – I’ve got the sound card you’re looking for, perfect virtual match&lt;br /&gt;
Microkernel – I’ve got sound card that plays Khazikstan sound format only&lt;br /&gt;
MicroKernel - Very small, very predictable, good for schedualing (QNX is a microkernel - POSIX compatable, benefits of running linux software like modern browsers) &lt;br /&gt;
&lt;br /&gt;
This is some ideas I&#039;ve got on this question, please contribute below&lt;br /&gt;
-Rovic&lt;br /&gt;
&lt;br /&gt;
Outlining some main features here as I see them.&lt;br /&gt;
&lt;br /&gt;
I found that the exokernel was an even lower-level design than the microkernel, closer to the hardware without abstraction. They have the same architecture with the basic functionality contained in the kernel to manage everyone. As the exokernel &amp;quot;gives&amp;quot; the resource to the application it can use the resource in isolation of other applications (until forced to shared) much like VMs receive their resources, either partitioned or virtualized, and execute as if its running on its own machine. There is this similar notion of partitioning the resources among applications/OS and allowing them to take control of what they have. &lt;br /&gt;
&lt;br /&gt;
I&#039;ll locate some references later on. --[[User:Slay|Slay]] 15:00, 7 October 2010 (UTC)&lt;br /&gt;
&lt;br /&gt;
I&#039;m just going to post my answer for question 1 on the individuel assignment and hope it helps. --[[User:Aellebla|Aellebla]] 15:06, 12 October 2010 (UTC)&lt;br /&gt;
&lt;br /&gt;
The design of the micro kernel was to take everything they could out of the Kernel and put it into a process. For ex, networking would be put into a process instead of staying in the kernel. The micro kernel dev&#039;s tried to keep lots of things in user space for efficiency. But one major problem with this is there would be a large amount of moving from a process to the kernel to user space and back again and this is a costly, non efficient process.It was an application specific OS, there was no multiplexing. With a virtual machine you are not virtualizing apps like with a microkernel but virtualizing an entire Operating System. This is very heavy however but the benefits are that it‟s easy and all the standard OS features are there whereas in a microkernel setup they would not all be there and this can be seen as a compromise.&lt;br /&gt;
&lt;br /&gt;
Exokernels can be seen as a compromise to virtual machines and microkernels because virtual machines emulate and exokernels do not. When you emulate something you hide a lot of the actual information because you wouldn‟t be able to see the „real‟ hardware. If we look at a virtual box setup running Linux, and we go look at all the hardware, it will be displayed as fake hardware.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Maybe we can have an introduction - paragraph or so on each type - then similarities - differences - and the compromise.  I am going to do some research and writing this weekend and I will put some up  -- Jslonosky&lt;br /&gt;
&lt;br /&gt;
btw in my page (i guess you can call it that) i have some resources i have found  --[[User:Asoknack|Asoknack]] 15:50, 8 October 2010 (UTC)&lt;br /&gt;
- Wow, nice man. I will go ahead and write up the descriptive paragraphs on each kernel and virtual machine if no one minds. --Jslonosky&lt;br /&gt;
&lt;br /&gt;
I think we should divide up the paragraphs and proofread each others instead. (Are there only 4 of us?) I don&#039;t have much time to work on this today though but I&#039;ll try to work on it tomorrow morning. - Slay&lt;br /&gt;
&lt;br /&gt;
Sure guy.  That sounds good.  There should be 5 or 6 of us though.. . Oh well. Their loss.  I will do some before or after work today. Ill start with Microkernel since there is not a large amount of info here, and so we don&#039;t overlap each other - JSlonosky&lt;br /&gt;
&lt;br /&gt;
yeah i think there was more like 7 of us btw if any one has any more information feel free to add it would be nice if you add the references so that way citing is really easy on  acm.org it will auto give you the citation info (where it says Display Formats click on ACM Ref  and new window with the citation info auto pop&#039;s up) --[[User:Asoknack|Asoknack]] 02:28, 11 October 2010 (UTC)&lt;br /&gt;
&lt;br /&gt;
I added an outline of the similarities and differences. Add any more that I missed. These are from observations so I don&#039;t have any resources. -Slay&lt;br /&gt;
That&#039;s probably fine.  Our textbook probably outlines some of them, so I am sure we can find a few there - JSlonosky&lt;br /&gt;
&lt;br /&gt;
Talked to the teacher today and for VM he said we should focus on the implementation such as Xen and VMware , he also said to talk about para virtualization --[[User:Asoknack|Asoknack]] 18:42, 12 October 2010 (UTC)&lt;br /&gt;
&lt;br /&gt;
A paper about emulation and paravirtualization http://portal.acm.org/citation.cfm?id=1189289&amp;amp;coll=GUIDE&amp;amp;dl=GUIDE&amp;amp;CFID=105648137&amp;amp;CFTOKEN=47153176&amp;amp;ret=1#Fulltext - Slay&lt;br /&gt;
&lt;br /&gt;
Oh no big words.  Sorry about the Microkernels not done yet.  Working on an outline now.  Finally found how to access the ACM through carleton.  Gawd. &lt;br /&gt;
I am planning an outline, quick bit about kernels in general, (maybe mention monolith kernels?), and what microkernels do.&lt;br /&gt;
I see the microkernel outline info and a reference ( Whomever did that == hero: true) about the scheduling and the Memory management.  Should that be included in kernels in general and then mention what microkernels build upon/change? - JSlonosky&lt;br /&gt;
&lt;br /&gt;
== The Essay ==&lt;br /&gt;
&lt;br /&gt;
Let&#039;s actually breakdown the essay into components then write it here.&lt;br /&gt;
&lt;br /&gt;
I&#039;d like to go along the premise that microkernels and and virtual machines are &amp;quot;weaker&amp;quot; than exokernels in design for the essay. If anyone has any objections, add it here. &lt;br /&gt;
&lt;br /&gt;
-Slade&lt;br /&gt;
&lt;br /&gt;
 what do you mean by &amp;quot;weaker&amp;quot;(i think you mean exokernels&#039; takes the best of both worlds ) --[[User:Asoknack|Asoknack]] 02:45, 13 October 2010 (UTC)&lt;br /&gt;
&lt;br /&gt;
We have our intro/thesis statement&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
...to the extent that exokernels be seen as a compromise between virtual machines and microkernels. &lt;br /&gt;
-I&#039;ll work on the initial intro, should have it ready by tonight. -Slade&lt;br /&gt;
&lt;br /&gt;
3 paragraphs that prove it&lt;br /&gt;
Explain how the key design characteristics of these three system architectures compare with each other. &lt;br /&gt;
&lt;br /&gt;
and conclusion&lt;/div&gt;</summary>
		<author><name>Slay</name></author>
	</entry>
	<entry>
		<id>https://homeostasis.scs.carleton.ca/wiki/index.php?title=Talk:COMP_3000_Essay_1_2010_Question_1&amp;diff=2960</id>
		<title>Talk:COMP 3000 Essay 1 2010 Question 1</title>
		<link rel="alternate" type="text/html" href="https://homeostasis.scs.carleton.ca/wiki/index.php?title=Talk:COMP_3000_Essay_1_2010_Question_1&amp;diff=2960"/>
		<updated>2010-10-11T17:37:00Z</updated>

		<summary type="html">&lt;p&gt;Slay: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Microkernel == &lt;br /&gt;
* Moving kernel functionality into processes contained in user space, e.g. file systems, drivers&lt;br /&gt;
* Keep basic functionality in kernel to handle sharing of resources&lt;br /&gt;
* Separation allows for manageability and security, corruption in one does not necessarily cause failure in system&lt;br /&gt;
&lt;br /&gt;
== Virtual Machine ==&lt;br /&gt;
* Partitioning or virtualizing resources among OS virtualization running on top of host OS&lt;br /&gt;
* Virtualized OS believe running on full machine on its own&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
System Level Virtualization&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039; VMM &#039;&#039;&#039;&lt;br /&gt;
* stands for Virtual Machine Monitor, also known as the hyper-visor[4]&lt;br /&gt;
* responsible for virtualization of hardware(mapping physical to virtual) and the VM that run on top of the virtuallized hardware [4]&lt;br /&gt;
* usually a small os with no drivers , so it is coupled with a linux distro that provides device / hardware access [4]&lt;br /&gt;
** the os that the VMM is using for driver&#039;s is called the hostOS [6]&lt;br /&gt;
*the hostOS provides login and physical access to the hardware as well as management for the VMM [6]&lt;br /&gt;
&#039;&#039;&#039; VM &#039;&#039;&#039;&lt;br /&gt;
* the OS that the vm is running is called the guestOS [6]&lt;br /&gt;
* the guestOS only sees resources that have been allocated to the VM [6]&lt;br /&gt;
&#039;&#039;&#039; three approaches &#039;&#039;&#039;&lt;br /&gt;
*Type I virtualization [5]&lt;br /&gt;
** runs off the physical hardware [4]&lt;br /&gt;
** Isolation of the guestOs from the hardware is done threw processe level protection meachnism[6]&lt;br /&gt;
*** ring 0 = VMM [6]&lt;br /&gt;
*** ring 1 = VM [6]&lt;br /&gt;
*** this means all instructions from the VM must go threw the VMM [6]&lt;br /&gt;
** since there can be multiple VM&#039;s on a computer the scheduling is done by the VMM [6]&lt;br /&gt;
** on boot the VMM creates a hardware platform for the VM [6]&lt;br /&gt;
** load&#039;s the VM kernel into virtual memory and then boot&#039;s it like a regular computer [6]&lt;br /&gt;
** ex. Xen [4]&lt;br /&gt;
*Type II virtualization [5]&lt;br /&gt;
** run off the host Os [4]&lt;br /&gt;
** ex. VMware , QEMU [4]&lt;br /&gt;
* Para-virtualization [6]&lt;br /&gt;
** Similar to Type but use the HostOs for Device driver access [6]&lt;br /&gt;
&lt;br /&gt;
== Exokernel ==&lt;br /&gt;
* Micro-kernel architecture with limited abstractions, ask for resource, get resource not resource abstraction&lt;br /&gt;
* Less functionality provided by kernel, security and handling of resource sharing&lt;br /&gt;
* Once application receives resource, it can use it as it wishes/in control&lt;br /&gt;
* Keep the basic kernel to handle allocating resources and sharing rather than developing straight to the hardware&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
* multiplex resources securely providing protection to mutual distrustful application threw the use of secure binding&#039;s[1]&lt;br /&gt;
* Goal of the exokernel is to give LibOS maximum freedom with out allowing them to interfere with each other. to do this the exokernel separates protection from management in doing this it provide 3 important tasks[1]&lt;br /&gt;
** tracking ownership of resources [1]&lt;br /&gt;
** ensuring protection by guarding all resource usage and binding points (not to shure what binding points are)[1]&lt;br /&gt;
** revoking access to the resources [1]&lt;br /&gt;
* LibrayOS (LibOs)&lt;br /&gt;
** Reduces the number of kernel crossings[1]&lt;br /&gt;
** Not trusted by the exokernel so can be trusted by the application , Example given is a bad parameter passed to the LibOs only the application is affected.[1] (So LibOs cant interact with kernel ???)&lt;br /&gt;
** Any application running on the Exokernel can change the LibrayOs freely [1]&lt;br /&gt;
** Application that use LibOS that implement standard interfaces (POSIX) will be portable on any system with the same interface [1]&lt;br /&gt;
** LibOs can be made portable if it is designed to interact with a low-level machine independent level to hide hardware details [1]&lt;br /&gt;
&lt;br /&gt;
=== Exokernel Design ===&lt;br /&gt;
==== Design Principles ====&lt;br /&gt;
*Securely Expose Hardware [1]&lt;br /&gt;
** an Exokernel tries to create low level primitives that the hardware resources can be accessed from, this also includes interrupts,exceptions [1]&lt;br /&gt;
** the exokernel also export privileged instructions to the LibOS so that traditional OS abstractions can be implemented (eg Process , address pace)[1]&lt;br /&gt;
** Exokernels should avoid resource management except when required protection ( allocation , revocation , ownership)[1]&lt;br /&gt;
** application based resource management is the best way to build flexible efficient flexible systems [1]&lt;br /&gt;
*Expose allocation[1]&lt;br /&gt;
** allow LibOs to request physical resources [1]&lt;br /&gt;
** resource allocation should not be automatic, the LibOS should participate in every single allocation decision [1]&lt;br /&gt;
*Expose Names[1]&lt;br /&gt;
** Use physical name&#039;s when ever possible[3] (not to sure what physical names are, I think it is as simple as what the hardware is called)--[[User:Asoknack|Asoknack]] 20:27, 9 October 2010 (UTC)&lt;br /&gt;
** Physical names capture useful information [3]&lt;br /&gt;
*** safer than and less resource intensive than virtual names as no translations are needed[3]&lt;br /&gt;
*Expose Revocation [1]&lt;br /&gt;
** use visible revocation protocol [1]&lt;br /&gt;
** allows well behaved LibOS to preform application level resource management [1]&lt;br /&gt;
** Visible revocation allows the LibOS to choose what instance of the resource to release[1](Visible means that when revocation happens the exokernel tell the LibOS that resource is being revoked)&lt;br /&gt;
&#039;&#039;&#039; Policy &#039;&#039;&#039;&lt;br /&gt;
* LibOS handle resource policy decisions&lt;br /&gt;
* Exokernels have a policy to decided between competing LibOS (Priority , share of resources)&lt;br /&gt;
** it enforces this threw allocation and deallocation (every thing can achieved threw this even what block to write and such)&lt;br /&gt;
&lt;br /&gt;
==== Secure Bindings ====&lt;br /&gt;
* Used by the exokernel to allow the LibOS to bind to resources [1]&lt;br /&gt;
* Allows the separation of protection and resource use [1]&lt;br /&gt;
* only checks authorization during bind time [1]&lt;br /&gt;
** Application&#039;s with complex needs for resources only authorized during bind.[1]&lt;br /&gt;
* access checking is done during access time and there is no need to understand complex resources needs during access[1]&lt;br /&gt;
** (this means that the exokernel checks once to make sure an application has authorization once approved, when the application tries to use the resource the exokernel is only concerned about policy conflict&#039;s)--[[User:Asoknack|Asoknack]] 18:20, 9 October 2010 (UTC)&lt;br /&gt;
** allows the kernel to protect the resources with out understanding what the resource is [1]&lt;br /&gt;
*three way&#039;s to implement&lt;br /&gt;
* Hardware Mechanisms [1]&lt;br /&gt;
* Software caching [1]&lt;br /&gt;
* Downloading application code [1]&lt;br /&gt;
&#039;&#039;&#039; Downloading Code to the Kernel &#039;&#039;&#039;&lt;br /&gt;
* used to implement secure bindings , and improve performance[1]&lt;br /&gt;
** eliminate the number of kernel crossings [1]&lt;br /&gt;
** downloaded code can be run with out the application to be scheduled [2]&lt;br /&gt;
==== Visible Resource Revocation ====&lt;br /&gt;
* Used for most resources [1]&lt;br /&gt;
** allows for LibOS to help with deallocation [1]&lt;br /&gt;
** LibOS are able to garner what resources are scare [1]&lt;br /&gt;
* Slower than Invisible as application involvement is required [1]&lt;br /&gt;
** ex of when invisible is used is Processor addressing-context identifiers [1]&lt;br /&gt;
==== Abort Protocol ====&lt;br /&gt;
* allows the exokernel to take resources away from the LibOS [1]&lt;br /&gt;
* used when the LibOS fails to respond to the revocation request [1]&lt;br /&gt;
* Exokernel must be careful not to delete as the LibOS might need to write some system critical data to the resource [1]&lt;br /&gt;
&lt;br /&gt;
== Comparisons  ==&lt;br /&gt;
====Exokernel/Microkernel====&lt;br /&gt;
&#039;&#039;&#039;Similarities&#039;&#039;&#039;&lt;br /&gt;
* Limited functionality in kernel&lt;br /&gt;
** functionality in kernel to handle sharing of resources and security&lt;br /&gt;
** avoids programming directly to hardware which creates a dependency&lt;br /&gt;
* Additional functionality provided in user space as processes&lt;br /&gt;
&#039;&#039;&#039;Differences&#039;&#039;&#039;&lt;br /&gt;
* Minimal abstractions provided by the kernel&lt;br /&gt;
** Applications given more power in exokernel&lt;br /&gt;
&lt;br /&gt;
====Exokernel/VM====&lt;br /&gt;
&#039;&#039;&#039;Similarities&#039;&#039;&#039;&lt;br /&gt;
* Idea of partitioning resources between applications/OSs&lt;br /&gt;
* &amp;quot;Control&amp;quot; of resource given&lt;br /&gt;
* Isolation from other applications/OSs&lt;br /&gt;
&#039;&#039;&#039;Differences&#039;&#039;&#039;&lt;br /&gt;
* Exokernel runs applications, VM runs OS&lt;br /&gt;
* VM uses a hostOS and guestOSs run on top&lt;br /&gt;
* Virtualization on VMs, Exokernel deals with real resources&lt;br /&gt;
&lt;br /&gt;
== References ==&lt;br /&gt;
[1]&amp;lt;nowiki&amp;gt; Engler, D. R., Kaashoek, M. F., and O&#039;Toole, J. 1995. Exokernel: an operating system architecture for application-level resource management. In Proceedings of the Fifteenth ACM Symposium on Operating Systems Principles  (Copper Mountain, Colorado, United States, December 03 - 06, 1995). M. B. Jones, Ed. SOSP &#039;95. ACM, New York, NY, 251-266. DOI= http://doi.acm.org/10.1145/224056.224076 &amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[2]&amp;lt;nowiki&amp;gt;Engler, Dawson R. &amp;quot;The Exokernel Operating System Architecture.&amp;quot; Diss. Massachusetts Institute of Technology, Dept. of Electrical Engineering and Computer Science, 1998. Web. 9 Oct. 2010. &amp;lt;http://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.61.5054&amp;amp;rep=rep1&amp;amp;type=pdf&amp;gt;.&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[3]&amp;lt;nowiki&amp;gt;Kaashoek, M. F., Engler, D. R., Ganger, G. R., Briceño, H. M., Hunt, R., Mazières, D., Pinckney, T., Grimm, R., Jannotti, J., and Mackenzie, K. 1997. Application performance and flexibility on exokernel systems. In Proceedings of the Sixteenth ACM Symposium on Operating Systems Principles  (Saint Malo, France, October 05 - 08, 1997). W. M. Waite, Ed. SOSP &#039;97. ACM, New York, NY, 52-65. DOI= http://doi.acm.org/10.1145/268998.266644 &amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[4]&amp;lt;nowiki&amp;gt;Vallee, G.; Naughton, T.; Engelmann, C.; Hong Ong; Scott, S.L.; , &amp;quot;System-Level Virtualization for High Performance Computing,&amp;quot; Parallel, Distributed and Network-Based Processing, 2008. PDP 2008. 16th Euromicro Conference on , vol., no., pp.636-643, 13-15 Feb. 2008&lt;br /&gt;
DOI= http://doi.acm.org/10.1109/PDP.2008.85 &amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[5]&amp;lt;nowiki&amp;gt;Goldberg, R. P. 1973. Architecture of virtual machines. In Proceedings of the Workshop on Virtual Computer Systems  (Cambridge, Massachusetts, United States, March 26 - 27, 1973). ACM, New York, NY, 74-112. DOI= http://doi.acm.org/10.1145/800122.803950 &amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[6]&amp;lt;nowiki&amp;gt;Vallee, G., Naughton, T., and Scott, S. L. 2007. System management software for virtual environments. In Proceedings of the 4th international Conference on Computing Frontiers (Ischia, Italy, May 07 - 09, 2007). CF &#039;07. ACM, New York, NY, 153-160. DOI= http://doi.acm.org/10.1145/1242531.1242555 &amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[7]&amp;lt;nowiki&amp;gt;Liedtke, J. 1995. On micro-kernel construction. In Proceedings of the Fifteenth ACM Symposium on Operating Systems Principles  (Copper Mountain, Colorado, United States, December 03 - 06, 1995). M. B. Jones, Ed. SOSP &#039;95. ACM, New York, NY, 237-250. DOI= http://doi.acm.org/10.1145/224056.224075 &amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Unsorted ==&lt;br /&gt;
Exokernel-&lt;br /&gt;
Minimalistic abstractions for developers&lt;br /&gt;
Exokernels can be seen as a good compromise between virtual machines and microkernels in the sense that exokernels can give that low level access to developers similar to direct access through a protected layer and at the same time can contain enough hardware abstraction to allow similar benefit of hiding the hardware resources to application programs.&lt;br /&gt;
Exokernel – fewest hardware abstractions to developer&lt;br /&gt;
Microkernel - is the near-minimum amount of software that can provide the mechanisms needed to implement an operating system&lt;br /&gt;
Virtual machine is a simulation of any or devices requested by an application program&lt;br /&gt;
Exokenel – I’ve got a sound card&lt;br /&gt;
Virtual Machine – I’ve got the sound card you’re looking for, perfect virtual match&lt;br /&gt;
Microkernel – I’ve got sound card that plays Khazikstan sound format only&lt;br /&gt;
MicroKernel - Very small, very predictable, good for schedualing (QNX is a microkernel - POSIX compatable, benefits of running linux software like modern browsers) &lt;br /&gt;
&lt;br /&gt;
This is some ideas I&#039;ve got on this question, please contribute below&lt;br /&gt;
-Rovic&lt;br /&gt;
&lt;br /&gt;
Outlining some main features here as I see them.&lt;br /&gt;
&lt;br /&gt;
I found that the exokernel was an even lower-level design than the microkernel, closer to the hardware without abstraction. They have the same architecture with the basic functionality contained in the kernel to manage everyone. As the exokernel &amp;quot;gives&amp;quot; the resource to the application it can use the resource in isolation of other applications (until forced to shared) much like VMs receive their resources, either partitioned or virtualized, and execute as if its running on its own machine. There is this similar notion of partitioning the resources among applications/OS and allowing them to take control of what they have. &lt;br /&gt;
&lt;br /&gt;
I&#039;ll locate some references later on. --[[User:Slay|Slay]] 15:00, 7 October 2010 (UTC)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Maybe we can have an introduction - paragraph or so on each type - then similarities - differences - and the compromise.  I am going to do some research and writing this weekend and I will put some up  -- Jslonosky&lt;br /&gt;
&lt;br /&gt;
btw in my page (i guess you can call it that) i have some resources i have found  --[[User:Asoknack|Asoknack]] 15:50, 8 October 2010 (UTC)&lt;br /&gt;
- Wow, nice man. I will go ahead and write up the descriptive paragraphs on each kernel and virtual machine if no one minds. --Jslonosky&lt;br /&gt;
&lt;br /&gt;
I think we should divide up the paragraphs and proofread each others instead. (Are there only 4 of us?) I don&#039;t have much time to work on this today though but I&#039;ll try to work on it tomorrow morning. - Slay&lt;br /&gt;
&lt;br /&gt;
Sure guy.  That sounds good.  There should be 5 or 6 of us though.. . Oh well. Their loss.  I will do some before or after work today. Ill start with Microkernel since there is not a large amount of info here, and so we don&#039;t overlap each other - JSlonosky&lt;br /&gt;
&lt;br /&gt;
yeah i think there was more like 7 of us btw if any one has any more information feel free to add it would be nice if you add the references so that way citing is really easy on  acm.org it will auto give you the citation info (where it says Display Formats click on ACM Ref  and new window with the citation info auto pop&#039;s up) --[[User:Asoknack|Asoknack]] 02:28, 11 October 2010 (UTC)&lt;br /&gt;
&lt;br /&gt;
I added an outline of the similarities and differences. Add any more that I missed. These are from observations so I don&#039;t have any resources. -Slay&lt;br /&gt;
&lt;br /&gt;
== The Essay ==&lt;br /&gt;
&lt;br /&gt;
Let&#039;s actually breakdown the essay into components then write it here.&lt;br /&gt;
&lt;br /&gt;
We have our intro/thesis statement&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
...to the extent that exokernels be seen as a compromise between virtual machines and microkernels. &lt;br /&gt;
-I&#039;ll work on the initial intro, should have it ready by tonight. -Slade&lt;br /&gt;
&lt;br /&gt;
3 paragraphs that prove it&lt;br /&gt;
Explain how the key design characteristics of these three system architectures compare with each other. &lt;br /&gt;
&lt;br /&gt;
and conclusion&lt;/div&gt;</summary>
		<author><name>Slay</name></author>
	</entry>
	<entry>
		<id>https://homeostasis.scs.carleton.ca/wiki/index.php?title=Talk:COMP_3000_Essay_1_2010_Question_1&amp;diff=2786</id>
		<title>Talk:COMP 3000 Essay 1 2010 Question 1</title>
		<link rel="alternate" type="text/html" href="https://homeostasis.scs.carleton.ca/wiki/index.php?title=Talk:COMP_3000_Essay_1_2010_Question_1&amp;diff=2786"/>
		<updated>2010-10-10T16:35:01Z</updated>

		<summary type="html">&lt;p&gt;Slay: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Microkernel == &lt;br /&gt;
* Moving kernel functionality into processes contained in user space, e.g. file systems, drivers&lt;br /&gt;
* Keep basic functionality in kernel to handle sharing of resources&lt;br /&gt;
* Separation allows for manageability and security, corruption in one does not necessarily cause failure in system&lt;br /&gt;
&lt;br /&gt;
== Virtual Machine ==&lt;br /&gt;
* Partitioning or virtualizing resources among OS virtualization running on top of host OS&lt;br /&gt;
* Virtualized OS believe running on full machine on its own&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
System Level Virtualization&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039; VMM &#039;&#039;&#039;&lt;br /&gt;
* stands for Virtual Machine Monitor, also known as the hyper-visor[4]&lt;br /&gt;
* responsible for virtualization of hardware(mapping physical to virtual) and the VM that run on top of the virtuallized hardware [4]&lt;br /&gt;
* usually a small os with no drivers , so it is coupled with a linux distro that provides device / hardware access [4]&lt;br /&gt;
** the os that the VMM is using for driver&#039;s is called the hostOS [6]&lt;br /&gt;
*the hostOS provides login and physical access to the hardware as well as management for the VMM [6]&lt;br /&gt;
&#039;&#039;&#039; VM &#039;&#039;&#039;&lt;br /&gt;
* the OS that the vm is running is called the guestOS [6]&lt;br /&gt;
* the guestOS only sees resources that have been allocated to the VM [6]&lt;br /&gt;
&#039;&#039;&#039; three approaches &#039;&#039;&#039;&lt;br /&gt;
*Type I virtualization [5]&lt;br /&gt;
** runs off the physical hardware [4]&lt;br /&gt;
** Isolation of the guestOs from the hardware is done threw processe level protection meachnism[6]&lt;br /&gt;
*** ring 0 = VMM [6]&lt;br /&gt;
*** ring 1 = VM [6]&lt;br /&gt;
*** this means all instructions from the VM must go threw the VMM [6]&lt;br /&gt;
** since there can be multiple VM&#039;s on a computer the scheduling is done by the VMM [6]&lt;br /&gt;
** on boot the VMM creates a hardware platform for the VM [6]&lt;br /&gt;
** load&#039;s the VM kernel into virtual memory and then boot&#039;s it like a regular computer [6]&lt;br /&gt;
** ex. Xen [4]&lt;br /&gt;
*Type II virtualization [5]&lt;br /&gt;
** run off the host Os [4]&lt;br /&gt;
** ex. VMware , QEMU [4]&lt;br /&gt;
* Para-virtualization [6]&lt;br /&gt;
** Similar to Type but use the HostOs for Device driver access [6]&lt;br /&gt;
&lt;br /&gt;
== Exokernel ==&lt;br /&gt;
* Micro-kernel architecture with limited abstractions, ask for resource, get resource not resource abstraction&lt;br /&gt;
* Less functionality provided by kernel, security and handling of resource sharing&lt;br /&gt;
* Once application receives resource, it can use it as it wishes/in control&lt;br /&gt;
* Keep the basic kernel to handle allocating resources and sharing rather than developing straight to the hardware&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
* multiplex resources securely providing protection to mutual distrustful application threw the use of secure binding&#039;s[1]&lt;br /&gt;
* Goal of the exokernel is to give LibOS maximum freedom with out allowing them to interfere with each other. to do this the exokernel separates protection from management in doing this it provide 3 important tasks[1]&lt;br /&gt;
** tracking ownership of resources [1]&lt;br /&gt;
** ensuring protection by guarding all resource usage and binding points (not to shure what binding points are)[1]&lt;br /&gt;
** revoking access to the resources [1]&lt;br /&gt;
* LibrayOS (LibOs)&lt;br /&gt;
** Reduces the number of kernel crossings[1]&lt;br /&gt;
** Not trusted by the exokernel so can be trusted by the application , Example given is a bad parameter passed to the LibOs only the application is affected.[1] (So LibOs cant interact with kernel ???)&lt;br /&gt;
** Any application running on the Exokernel can change the LibrayOs freely [1]&lt;br /&gt;
** Application that use LibOS that implement standard interfaces (POSIX) will be portable on any system with the same interface [1]&lt;br /&gt;
** LibOs can be made portable if it is designed to interact with a low-level machine independent level to hide hardware details [1]&lt;br /&gt;
&lt;br /&gt;
=== Exokernel Design ===&lt;br /&gt;
==== Design Principles ====&lt;br /&gt;
*Securely Expose Hardware [1]&lt;br /&gt;
** an Exokernel tries to create low level primitives that the hardware resources can be accessed from, this also includes interrupts,exceptions [1]&lt;br /&gt;
** the exokernel also export privileged instructions to the LibOS so that traditional OS abstractions can be implemented (eg Process , address pace)[1]&lt;br /&gt;
** Exokernels should avoid resource management except when required protection ( allocation , revocation , ownership)[1]&lt;br /&gt;
** application based resource management is the best way to build flexible efficient flexible systems [1]&lt;br /&gt;
*Expose allocation[1]&lt;br /&gt;
** allow LibOs to request physical resources [1]&lt;br /&gt;
** resource allocation should not be automatic, the LibOS should participate in every single allocation decision [1]&lt;br /&gt;
*Expose Names[1]&lt;br /&gt;
** Use physical name&#039;s when ever possible[3] (not to sure what physical names are, I think it is as simple as what the hardware is called)--[[User:Asoknack|Asoknack]] 20:27, 9 October 2010 (UTC)&lt;br /&gt;
** Physical names capture useful information [3]&lt;br /&gt;
*** safer than and less resource intensive than virtual names as no translations are needed[3]&lt;br /&gt;
*Expose Revocation [1]&lt;br /&gt;
** use visible revocation protocol [1]&lt;br /&gt;
** allows well behaved LibOS to preform application level resource management [1]&lt;br /&gt;
** Visible revocation allows the LibOS to choose what instance of the resource to release[1](Visible means that when revocation happens the exokernel tell the LibOS that resource is being revoked)&lt;br /&gt;
&#039;&#039;&#039; Policy &#039;&#039;&#039;&lt;br /&gt;
* LibOS handle resource policy decisions&lt;br /&gt;
* Exokernels have a policy to decided between competing LibOS (Priority , share of resources)&lt;br /&gt;
** it enforces this threw allocation and deallocation (every thing can achieved threw this even what block to write and such)&lt;br /&gt;
&lt;br /&gt;
==== Secure Bindings ====&lt;br /&gt;
* Used by the exokernel to allow the LibOS to bind to resources [1]&lt;br /&gt;
* Allows the separation of protection and resource use [1]&lt;br /&gt;
* only checks authorization during bind time [1]&lt;br /&gt;
** Application&#039;s with complex needs for resources only authorized during bind.[1]&lt;br /&gt;
* access checking is done during access time and there is no need to understand complex resources needs during access[1]&lt;br /&gt;
** (this means that the exokernel checks once to make sure an application has authorization once approved, when the application tries to use the resource the exokernel is only concerned about policy conflict&#039;s)--[[User:Asoknack|Asoknack]] 18:20, 9 October 2010 (UTC)&lt;br /&gt;
** allows the kernel to protect the resources with out understanding what the resource is [1]&lt;br /&gt;
*three way&#039;s to implement&lt;br /&gt;
* Hardware Mechanisms [1]&lt;br /&gt;
* Software caching [1]&lt;br /&gt;
* Downloading application code [1]&lt;br /&gt;
&#039;&#039;&#039; Downloading Code to the Kernel &#039;&#039;&#039;&lt;br /&gt;
* used to implement secure bindings , and improve performance[1]&lt;br /&gt;
** eliminate the number of kernel crossings [1]&lt;br /&gt;
** downloaded code can be run with out the application to be scheduled [2]&lt;br /&gt;
==== Visible Resource Revocation ====&lt;br /&gt;
* Used for most resources [1]&lt;br /&gt;
** allows for LibOS to help with deallocation [1]&lt;br /&gt;
** LibOS are able to garner what resources are scare [1]&lt;br /&gt;
* Slower than Invisible as application involvement is required [1]&lt;br /&gt;
** ex of when invisible is used is Processor addressing-context identifiers [1]&lt;br /&gt;
==== Abort Protocol ====&lt;br /&gt;
* allows the exokernel to take resources away from the LibOS [1]&lt;br /&gt;
* used when the LibOS fails to respond to the revocation request [1]&lt;br /&gt;
* Exokernel must be careful not to delete as the LibOS might need to write some system critical data to the resource [1]&lt;br /&gt;
&lt;br /&gt;
== References ==&lt;br /&gt;
[1]&amp;lt;nowiki&amp;gt; Engler, D. R., Kaashoek, M. F., and O&#039;Toole, J. 1995. Exokernel: an operating system architecture for application-level resource management. In Proceedings of the Fifteenth ACM Symposium on Operating Systems Principles  (Copper Mountain, Colorado, United States, December 03 - 06, 1995). M. B. Jones, Ed. SOSP &#039;95. ACM, New York, NY, 251-266. DOI= http://doi.acm.org/10.1145/224056.224076 &amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[2]&amp;lt;nowiki&amp;gt;Engler, Dawson R. &amp;quot;The Exokernel Operating System Architecture.&amp;quot; Diss. Massachusetts Institute of Technology, Dept. of Electrical Engineering and Computer Science, 1998. Web. 9 Oct. 2010. &amp;lt;http://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.61.5054&amp;amp;rep=rep1&amp;amp;type=pdf&amp;gt;.&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[3]&amp;lt;nowiki&amp;gt;Kaashoek, M. F., Engler, D. R., Ganger, G. R., Briceño, H. M., Hunt, R., Mazières, D., Pinckney, T., Grimm, R., Jannotti, J., and Mackenzie, K. 1997. Application performance and flexibility on exokernel systems. In Proceedings of the Sixteenth ACM Symposium on Operating Systems Principles  (Saint Malo, France, October 05 - 08, 1997). W. M. Waite, Ed. SOSP &#039;97. ACM, New York, NY, 52-65. DOI= http://doi.acm.org/10.1145/268998.266644 &amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[4]&amp;lt;nowiki&amp;gt;Vallee, G.; Naughton, T.; Engelmann, C.; Hong Ong; Scott, S.L.; , &amp;quot;System-Level Virtualization for High Performance Computing,&amp;quot; Parallel, Distributed and Network-Based Processing, 2008. PDP 2008. 16th Euromicro Conference on , vol., no., pp.636-643, 13-15 Feb. 2008&lt;br /&gt;
DOI= http://doi.acm.org/10.1109/PDP.2008.85 &amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[5]&amp;lt;nowiki&amp;gt;Goldberg, R. P. 1973. Architecture of virtual machines. In Proceedings of the Workshop on Virtual Computer Systems  (Cambridge, Massachusetts, United States, March 26 - 27, 1973). ACM, New York, NY, 74-112. DOI= http://doi.acm.org/10.1145/800122.803950 &amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[6]&amp;lt;nowiki&amp;gt;Vallee, G., Naughton, T., and Scott, S. L. 2007. System management software for virtual environments. In Proceedings of the 4th international Conference on Computing Frontiers (Ischia, Italy, May 07 - 09, 2007). CF &#039;07. ACM, New York, NY, 153-160. DOI= http://doi.acm.org/10.1145/1242531.1242555 &amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[7]&amp;lt;nowiki&amp;gt;Liedtke, J. 1995. On micro-kernel construction. In Proceedings of the Fifteenth ACM Symposium on Operating Systems Principles  (Copper Mountain, Colorado, United States, December 03 - 06, 1995). M. B. Jones, Ed. SOSP &#039;95. ACM, New York, NY, 237-250. DOI= http://doi.acm.org/10.1145/224056.224075 &amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Unsorted ==&lt;br /&gt;
Exokernel-&lt;br /&gt;
Minimalistic abstractions for developers&lt;br /&gt;
Exokernels can be seen as a good compromise between virtual machines and microkernels in the sense that exokernels can give that low level access to developers similar to direct access through a protected layer and at the same time can contain enough hardware abstraction to allow similar benefit of hiding the hardware resources to application programs.&lt;br /&gt;
Exokernel – fewest hardware abstractions to developer&lt;br /&gt;
Microkernel - is the near-minimum amount of software that can provide the mechanisms needed to implement an operating system&lt;br /&gt;
Virtual machine is a simulation of any or devices requested by an application program&lt;br /&gt;
Exokenel – I’ve got a sound card&lt;br /&gt;
Virtual Machine – I’ve got the sound card you’re looking for, perfect virtual match&lt;br /&gt;
Microkernel – I’ve got sound card that plays Khazikstan sound format only&lt;br /&gt;
MicroKernel - Very small, very predictable, good for schedualing (QNX is a microkernel - POSIX compatable, benefits of running linux software like modern browsers) &lt;br /&gt;
&lt;br /&gt;
This is some ideas I&#039;ve got on this question, please contribute below&lt;br /&gt;
-Rovic&lt;br /&gt;
&lt;br /&gt;
Outlining some main features here as I see them.&lt;br /&gt;
&lt;br /&gt;
I found that the exokernel was an even lower-level design than the microkernel, closer to the hardware without abstraction. They have the same architecture with the basic functionality contained in the kernel to manage everyone. As the exokernel &amp;quot;gives&amp;quot; the resource to the application it can use the resource in isolation of other applications (until forced to shared) much like VMs receive their resources, either partitioned or virtualized, and execute as if its running on its own machine. There is this similar notion of partitioning the resources among applications/OS and allowing them to take control of what they have. &lt;br /&gt;
&lt;br /&gt;
I&#039;ll locate some references later on. --[[User:Slay|Slay]] 15:00, 7 October 2010 (UTC)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Maybe we can have an introduction - paragraph or so on each type - then similarities - differences - and the compromise.  I am going to do some research and writing this weekend and I will put some up  -- Jslonosky&lt;br /&gt;
&lt;br /&gt;
btw in my page (i guess you can call it that) i have some resources i have found  --[[User:Asoknack|Asoknack]] 15:50, 8 October 2010 (UTC)&lt;br /&gt;
- Wow, nice man. I will go ahead and write up the descriptive paragraphs on each kernel and virtual machine if no one minds. --Jslonosky&lt;br /&gt;
&lt;br /&gt;
I think we should divide up the paragraphs and proofread each others instead. (Are there only 4 of us?) I don&#039;t have much time to work on this today though but I&#039;ll try to work on it tomorrow morning. - Slay&lt;/div&gt;</summary>
		<author><name>Slay</name></author>
	</entry>
	<entry>
		<id>https://homeostasis.scs.carleton.ca/wiki/index.php?title=Talk:COMP_3000_Essay_1_2010_Question_2&amp;diff=2487</id>
		<title>Talk:COMP 3000 Essay 1 2010 Question 2</title>
		<link rel="alternate" type="text/html" href="https://homeostasis.scs.carleton.ca/wiki/index.php?title=Talk:COMP_3000_Essay_1_2010_Question_2&amp;diff=2487"/>
		<updated>2010-10-07T15:05:17Z</updated>

		<summary type="html">&lt;p&gt;Slay: Created page with &amp;#039;Not in this group and I&amp;#039;m not completely sure if this is relevant but I found that UNIX used the POSIX standard while Linux used LSB which is based on the POSIX standard.  This a…&amp;#039;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Not in this group and I&#039;m not completely sure if this is relevant but I found that UNIX used the POSIX standard while Linux used LSB which is based on the POSIX standard. &lt;br /&gt;
This article outlines some conflicts between them [https://www.opengroup.org/platform/single_unix_specification/uploads/40/13450/POSIX_and_Linux_Application_Compatibility_Final_-_v1.0.pdf]. I didn&#039;t find the actual comparisons very comprehensible but the ideas are there. --[[User:Slay|Slay]] 15:05, 7 October 2010 (UTC)&lt;/div&gt;</summary>
		<author><name>Slay</name></author>
	</entry>
	<entry>
		<id>https://homeostasis.scs.carleton.ca/wiki/index.php?title=Talk:COMP_3000_Essay_1_2010_Question_1&amp;diff=2486</id>
		<title>Talk:COMP 3000 Essay 1 2010 Question 1</title>
		<link rel="alternate" type="text/html" href="https://homeostasis.scs.carleton.ca/wiki/index.php?title=Talk:COMP_3000_Essay_1_2010_Question_1&amp;diff=2486"/>
		<updated>2010-10-07T15:00:09Z</updated>

		<summary type="html">&lt;p&gt;Slay: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Exokernel-&lt;br /&gt;
Minimalistic abstractions for developers&lt;br /&gt;
Exokernels can be seen as a good compromise between virtual machines and microkernels in the sense that exokernels can give that low level access to developers similar to direct access through a protected layer and at the same time can contain enough hardware abstraction to allow similar benefit of hiding the hardware resources to application programs.&lt;br /&gt;
Exokernel – fewest hardware abstractions to developer&lt;br /&gt;
Microkernel - is the near-minimum amount of software that can provide the mechanisms needed to implement an operating system&lt;br /&gt;
Virtual machine is a simulation of any or devices requested by an application program&lt;br /&gt;
Exokenel – I’ve got a sound card&lt;br /&gt;
Virtual Machine – I’ve got the sound card you’re looking for, perfect virtual match&lt;br /&gt;
Microkernel – I’ve got sound card that plays Khazikstan sound format only&lt;br /&gt;
MicroKernel - Very small, very predictable, good for schedualing (QNX is a microkernel - POSIX compatable, benefits of running linux software like modern browsers) &lt;br /&gt;
&lt;br /&gt;
This is some ideas I&#039;ve got on this question, please contribute below&lt;br /&gt;
-Rovic&lt;br /&gt;
&lt;br /&gt;
Outlining some main features here as I see them.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Microkernel&#039;&#039;&#039; &lt;br /&gt;
- Moving kernel functionality into processes contained in user space, e.g. file systems, drivers&lt;br /&gt;
- Keep basic functionality in kernel to handle sharing of resources&lt;br /&gt;
- Separation allows for manageability and security, corruption in one does not necessarily cause failure in system&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Virtual Machine&#039;&#039;&#039;&lt;br /&gt;
- Partitioning or virtualizing resources among OS virtualization running on top of host OS&lt;br /&gt;
- Virtualized OS believe running on full machine on its own&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Exokernel&#039;&#039;&#039;&lt;br /&gt;
- Microkernel architecture with limited abstractions, ask for resource, get resource not resource abstraction&lt;br /&gt;
- Less functionality provided by kernel, security and handling of resource sharing&lt;br /&gt;
- Once application receives resource, it can use it as it wishes/in control&lt;br /&gt;
- Keep the basic kernel to handle allocating resources and sharing rather than developing straight to the hardware&lt;br /&gt;
&lt;br /&gt;
I found that the exokernel was an even lower-level design than the microkernel, closer to the hardware without abstraction. They have the same architecture with the basic functionality contained in the kernel to manage everyone. As the exokernel &amp;quot;gives&amp;quot; the resource to the application it can use the resource in isolation of other applications (until forced to shared) much like VMs receive their resources, either partitioned or virtualized, and execute as if its running on its own machine. There is this similar notion of partitioning the resources among applications/OS and allowing them to take control of what they have. &lt;br /&gt;
&lt;br /&gt;
I&#039;ll locate some references later on. --[[User:Slay|Slay]] 15:00, 7 October 2010 (UTC)&lt;/div&gt;</summary>
		<author><name>Slay</name></author>
	</entry>
	<entry>
		<id>https://homeostasis.scs.carleton.ca/wiki/index.php?title=Talk:COMP_3000_Essay_1_2010_Question_1&amp;diff=2485</id>
		<title>Talk:COMP 3000 Essay 1 2010 Question 1</title>
		<link rel="alternate" type="text/html" href="https://homeostasis.scs.carleton.ca/wiki/index.php?title=Talk:COMP_3000_Essay_1_2010_Question_1&amp;diff=2485"/>
		<updated>2010-10-07T14:58:16Z</updated>

		<summary type="html">&lt;p&gt;Slay: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Exokernel-&lt;br /&gt;
Minimalistic abstractions for developers&lt;br /&gt;
Exokernels can be seen as a good compromise between virtual machines and microkernels in the sense that exokernels can give that low level access to developers similar to direct access through a protected layer and at the same time can contain enough hardware abstraction to allow similar benefit of hiding the hardware resources to application programs.&lt;br /&gt;
Exokernel – fewest hardware abstractions to developer&lt;br /&gt;
Microkernel - is the near-minimum amount of software that can provide the mechanisms needed to implement an operating system&lt;br /&gt;
Virtual machine is a simulation of any or devices requested by an application program&lt;br /&gt;
Exokenel – I’ve got a sound card&lt;br /&gt;
Virtual Machine – I’ve got the sound card you’re looking for, perfect virtual match&lt;br /&gt;
Microkernel – I’ve got sound card that plays Khazikstan sound format only&lt;br /&gt;
MicroKernel - Very small, very predictable, good for schedualing (QNX is a microkernel - POSIX compatable, benefits of running linux software like modern browsers) &lt;br /&gt;
&lt;br /&gt;
This is some ideas I&#039;ve got on this question, please contribute below&lt;br /&gt;
-Rovic&lt;br /&gt;
&lt;br /&gt;
Outlining some main features here as I see them. -Stephany&lt;br /&gt;
&lt;br /&gt;
Microkernel &lt;br /&gt;
- Moving kernel functionality into processes contained in user space, e.g. file systems, drivers&lt;br /&gt;
- Keep basic functionality in kernel to handle sharing of resources&lt;br /&gt;
- Separation allows for manageability and security, corruption in one does not necessarily cause failure in system&lt;br /&gt;
&lt;br /&gt;
Virtual Machine&lt;br /&gt;
- Partitioning or virtualizing resources among OS virtualization running on top of host OS&lt;br /&gt;
- Virtualized OS believe running on full machine on its own&lt;br /&gt;
&lt;br /&gt;
Exokernel&lt;br /&gt;
- Microkernel architecture with limited abstractions, ask for resource, get resource not resource abstraction&lt;br /&gt;
- Less functionality provided by kernel, security and handling of resource sharing&lt;br /&gt;
- Once application receives resource, it can use it as it wishes/in control&lt;br /&gt;
- Keep the basic kernel to handle allocating resources and sharing rather than developing straight to the hardware&lt;br /&gt;
&lt;br /&gt;
I found that the exokernel was an even lower-level design than the microkernel, closer to the hardware without abstraction. They have the same architecture with the basic functionality contained in the kernel to manage everyone. As the exokernel &amp;quot;gives&amp;quot; the resource to the application it can use the resource in isolation of other applications (until forced to shared) much like VMs receive their resources, either partitioned or virtualized, and execute as if its running on its own machine. There is this similar notion of partitioning the resources among applications/OS and allowing them to take control of what they have. -Stephany&lt;/div&gt;</summary>
		<author><name>Slay</name></author>
	</entry>
</feed>