9.Highlight the features of COM
MDI (Multiple Document Interface) and SDI (Single Document Interface) are different interface designs meant to handle documents within a single application. MDI allows an application to contain child windows per document, while SDI enforces one document per window. Neither approach has much effect on performance or stability: despite the intuition of two SDI applications as being separate entities, they are very often still implemented as a single process. Similarly, an MDI interface can be implemented as multiple processes (Google Chrome being a prime example). It's also worth noting that tabbed interfaces, although matching the description of MDI, often don't show multiple documents at the same time in the same window, and universally support multiple top-level windows as well. | |MDI |SDI | |Maximize all documents |Maximize parent window |Can only be implemented through special code or | | | |through a window manager that can group windows | |Switch between documents |Using special interface inside parent window |Through task /window manager | |Multiple Desktops |You can only stretch the parent window and try to|Easily done | | |organize individual windows manually | | |Multiple Monitors |You can only span the parent window and try to |Easily done | | |organize individual windows manually | | |Grouping |Naturally implemented |Possible only through special window managers | |Switch focus to specific |Easily handled |Difficult to implement | |document | | |
Stability and Performance
SDI applications tend to be more robust and bug-free than MDI applications, since a serious error with one document rarely affects the other documents within an SDI environment. For example, if one Windows Notepad document crashes, any other open copies of Notepad will usually survive the crash. On the other hand, if one Web page in Firefox causes the browser to crash, all the open Web pages die with it. Nevertheless, MDI applications tend to perform more quickly than SDI programs, since only one version of the application is loaded into memory Q2. Answer
• With multiple document interfaces (and also tabbed document interfaces), a single menu bar and/or toolbar is shared between all child windows, reducing clutter and increasing efficient use of screen space. This argument is less relevant on an operating system which uses a common menu bar. • An application's child windows can be hidden/shown/minimized/maximized as a whole. • Features such as "Tile" and "Cascade" can be implemented for the child windows. • Authors of cross-platform applications can provide their users with consistent application behaviour between platforms. • If the windowing environment and OS lack good window management, the application author can implement it themselves. • Without an MDI frame window, floating toolbars from one application can clutter the...