1. Home
  2. Explore
  3. Computer Science
  4. Microsoft’s Early Beginnings

Study methods

Flashcards
Quiz
Fill in the blanks
Written test
Lesson
Notes
Podcast
Content

Microsoft’s Early Beginnings

  • 137Unfamiliar
  • 0Learning
  • 0Familiar
  • 0Mastered
Topic: Microsoft Origins
  • spaceFlip card
  • KI knew it
  • DI didn't know it
  • ←Previous card
  • →Next card

What opportunity did Paul Allen recognize when he saw the Altair 8800 featured in Popular Electronics?

Tap to flipClick to flipspace

Paul Allen saw the Altair 8800 featured in Popular Electronics and recognized that an affordable computer could create an opportunity for a software company.

Or swipe the card

137 cards

  1. What opportunity did Paul Allen recognize when he saw the Altair 8800 featured in Popular Electronics?

    Paul Allen saw the Altair 8800 featured in Popular Electronics and recognized that an affordable computer could create an opportunity for a software company.

  2. Why was the Altair 8800 significant to Allen and Gates as a business opportunity?

    Before consumer-grade computers, manufacturers mainly sold expensive systems to large companies and research labs.

  3. What software contract did Allen and Gates seek from MITS?

    Allen and Gates wanted to develop an implementation of BASIC for the Altair system.

  4. How did Gates secure an opportunity to demonstrate the Altair BASIC interpreter to MITS?

    Gates told MITS CEO Ed Roberts they already had a working interpreter, although they did not. Roberts challenged them to be the first to demonstrate working software on the Altair in Albuquerque.

  5. Who delivered the first successful Altair software demonstration, and when?

    Two months after the challenge, Paul Allen arrived alone with the completed software and successfully demonstrated it.

  6. When did Allen and Gates found Microsoft relative to the Altair demonstration?

    Allen and Gates founded Microsoft about a month after Allen's successful demonstration.

  7. What revenue figure is given for Microsoft in 1980?

    In 1980, Microsoft had revenue of 8million,describedasabout8 million, described as about 8million,describedasabout31 million in contemporary currency in the source.

  8. How did Microsoft obtain the operating system it supplied for the IBM PC?

    Microsoft bought the existing 86-DOS system, modified it, and licensed it to IBM as MS-DOS.

  9. How did the first Windows release relate to DOS, and what later versions are cited as its evolution?

    Microsoft released Windows in 1985 as a graphical interface running on top of DOS; it later evolved into Windows 95, Windows XP, and modern Windows versions.

  10. How many bits are in a byte and a word, and how do double and quadruple words compare to a word?

    A byte is 8 bits; a word is 16 bits; a double word is twice a word's size; and a quadruple word is four times a word's size.

  11. What is a process, and what is its role in resource isolation?

    A process is a program that has been executed and loaded into memory. Processes isolate the resources of running applications.

  12. Why do modern operating systems use virtual memory instead of letting processes freely navigate physical memory?

    Virtual memory gives each process its own address space, avoiding the management and safety problems of letting programs freely access physical memory.

  13. What do virtual addresses index, and what are the memory chunks described by those tables called?

    Virtual addresses index tables describing memory chunks, called pages, associated with a process.

  14. How are the four levels of virtual-memory tables organized in the described system?

    The described scheme uses four levels of tables. Each table has 512 entries, and each entry points to a table at the next level, except final-level entries, which identify physical pages.

  15. How are the bits of a virtual address divided among the table indexes and page offset in the described scheme?

    The first three table indexes each use 9 bits; the final 12 bits offset into a page.

  16. Why do the final 12 bits of a virtual address select an offset within a typical page?

    A typical page is 4,096 bytes, or 2122^{12}212 bytes, so the final 12 address bits select an offset within it.

  17. What sizes are given for ordinary, huge, and giant memory pages?

    Typical pages are 4 KiB; huge pages are 2 MiB; and giant pages are 1 GiB.

  18. Why is a 512-entry memory table exactly 4,096 bytes in size?

    Each table entry is 64 bits, and 512 such entries occupy 4,096 bytes—the size of a typical memory page.

  19. Besides identifying a table or page, what information can page-table entry bits specify?

    Unused entry bits can encode properties such as whether the described page is writable or executable.

  20. How can separate processes share memory, and what is one common example?

    Processes can share physical pages by having their page tables point to the same pages; this is used to share dynamic libraries and save physical memory.

  21. What happens when a process writes to a page marked copy-on-write?

    With copy-on-write, a write to a shared page causes the system to copy it to a fresh physical page and update the writing process's page-table entry, leaving other processes' pages unchanged.

  22. How does Windows map system code into application address spaces while restricting user-mode access?

    Windows maps much system code into the upper part of each application's virtual memory, but kernel-marked pages can be accessed only in privileged mode.

  23. How do protection-ring privilege levels correspond to user mode and kernel mode in the described system?

    Lower-numbered protection rings have more privileges. Modern systems described here use ring 0 for kernel mode and ring 3 for user mode; rings 1 and 2 are unused.

  24. What happens if user-mode code accesses a page marked as kernel-only?

    Accessing kernel-protected pages while running in ring 3 causes an exception, which can crash the program.

  25. How does user-mode code request a privileged operation through a system call?

    A system call lets user-mode code request a privileged operation: it supplies arguments and a service number, then invokes syscall to enter kernel mode and reach the system-call handler.

  26. What is the purpose of a system-call service number and the SSDT?

    The service number indexes the System Service Dispatch Table (SSDT), which identifies the function that handles the requested operation.

  27. How do CPU cache levels differ in sharing, size, speed, and purpose?

    The L3 cache is shared across cores. Each core also has L1 and L2 caches; lower-numbered caches are smaller but faster. Caches hold frequently used data and instructions.

  28. What do the control unit and ALU do in a CPU core?

    A core's control unit fetches instructions and directs them to execution units. An ALU, or arithmetic logic unit, performs arithmetic and logical operations.

  29. What is the MMU's role?

    The memory management unit (MMU) handles memory, including virtual memory.

  30. What are CPU registers used for, and what size range is given for registers in 64-bit computers?

    Registers are small, very fast storage locations for data needed in the current execution context. In 64-bit computers, their sizes range from 64 to 512 bits.

  31. What does the RIP register track?

    RIP, the instruction pointer, identifies the current instruction being executed by a core.

  32. How many instructions could the example CPU execute simultaneously if it has two cores?

    A two-core CPU can execute two instructions simultaneously, one on each core, in the example described.

  33. How does EAX relate to RAX?

    EAX accesses the first 32 bits of the RAX register.

  34. What is a common convention for using RAX, and are such register uses mandatory?

    Registers such as RAX and RCX do not have a mandatory special use, though conventions exist; for example, RAX often holds a function's return value.

  35. What does the zero flag in RFLAGS indicate?

    RFLAGS is a bitfield for conditions and configuration. Its sixth bit is the zero flag: when set after testing a register, it indicates the tested value is zero.

  36. Which part of RFLAGS is accessible in user mode, according to the source?

    Only the EFLAGS portion of RFLAGS is accessible in user mode; the remaining bits are reserved for future use.

  37. How did the role of segment registers change after virtual memory made segmentation obsolete?

    Although originally used for segmentation, which became obsolete with virtual memory, segment registers are now used by operating systems to store useful pointers and system structures.

  38. What does CR3 store in the described system?

    CR3 stores the current program's first-level page-table address for virtual-address translation.

  39. What is a thread in terms of CPU execution?

    A thread is an execution context—a CPU state associated with the register values used while executing that thread's instructions.

  40. What is a thread stack used for, and what is a stack frame?

    A thread's stack is a fixed-size, readable and writable memory region used for function arguments and local variables. A function typically uses its own stack frame.

  41. How does a modern thread stack differ from a strictly last-in, first-out data-structure stack?

    A conventional data-structure stack is last-in, first-out, but a modern thread stack does not have to be accessed strictly in that order.

  42. What are the roles of RSP and RBP?

    RSP points to the top of the stack, while RBP points to the base of the current stack frame.

  43. What is the general stack-frame sequence for calling and returning from a function?

    A function call saves a return address and the previous frame's base pointer, establishes a new frame, reserves space for locals, and uses that frame. Returning restores the old base pointer and loads the return address into the instruction pointer.

  44. Why might code zero a stack value before using it?

    Stack locations may contain leftover data from earlier frames, so a value should be zeroed before use when appropriate.

  45. Why might two functions be invoked using different calling conventions?

    Functions can use different calling conventions, which specify how function calls are performed.

  46. Where should a program store large data that is unsuitable for a thread's fixed-size stack?

    Large data such as an image is better stored on the heap than on a fixed-size thread stack.

  47. What is the PE format, and why is it called portable?

    Portable Executable (PE) is the executable-file format used by Windows applications; it is called portable because it supports multiple architectures.

  48. What is the DOS header, and what important location information does it contain?

    The DOS header is the first information in a PE file and contains values including the location of the NT headers.

  49. What is the DOS stub in a PE file, and what does it commonly display?

    The DOS stub is a small 16-bit program for old DOS systems. It commonly prints “This program cannot be run in DOS mode.”

  50. What kinds of information are stored in the PE file header and optional header?

    The file header includes information such as the target architecture and file-creation time. The optional header includes important information such as where the code begins.

  51. What is a PE section, and what kinds of content can it hold?

    A PE section is a portion of an executable dedicated to particular data, such as code, imported-function information, or resources.

  52. What information does the PE section table contain?

    The section table lists sections and their names, sizes, and attributes, including whether their contents are readable, writable, or executable.

  53. What can happen if a program writes to a non-writable PE section?

    Section protections limit what code can do with data. For example, writing to a non-writable code section causes an access-violation exception and can crash the program.

  54. What are the usual purposes of the .text, .data, and .rdata PE sections?

    .text typically stores executable code, .data stores writable data, and .rdata stores read-only data.

  55. What user-interface functions does Explorer.exe perform?

    Explorer.exe displays the desktop, taskbar, and File Explorer windows, and it initiates programs that a user executes from the interface.

  56. What is CreateProcess, and what kind of interface does it belong to?

    CreateProcess is a Windows API utility that programmers use to interact with the operating system and create a process.

  57. How do static and dynamic library linking differ?

    Static linking copies a library's contents into the executable. Dynamic linking uses separate DLL files that can be loaded into processes that need them, avoiding redundant copies in executables.

  58. How does Windows make a DLL available to a process that needs it?

    A dynamically linked library (DLL) is a disk file whose code the system makes available in memory and maps into processes that require it.

  59. How are kernel32.dll and kernelbase.dll related?

    Kernel32 is a legacy API library kept for backward compatibility. Its functions mostly forward to kernelbase, which is intended as its modern replacement.

  60. What is the difference between A and W variants of Windows API routines that take strings?

    For string-taking Windows API routines, A variants use regular strings and W variants use wide strings. A variants commonly convert inputs to wide strings and convert string outputs back.

  61. How do user mode and kernel mode correspond to x86-64 protection rings?

    Windows runs code at different privilege levels: ring 3 is user mode and ring 0 is kernel mode. Sensitive instructions and data are restricted to appropriate levels.

  62. What kinds of components are found in the user-mode part of Windows?

    The user-mode portion includes user processes and subsystem DLLs; a boundary separates it from Windows kernel-mode components.

  63. What do subsystem DLLs do, and what is an example of one?

    Subsystem DLLs expose portions of the Windows API. For example, user32 provides functions for graphical interfaces and user input.

  64. What three function families does NTDLL contain?

    Most subsystem functions eventually invoke routines in NTDLL, whose routines include native NT functions, Zw functions, and runtime-library Rtl functions.

  65. How do NTDLL's NT, Zw, and Rtl function families differ?

    NT functions are system-call wrappers; Zw functions implement the same system calls for kernel code to use in certain cases; Rtl functions are helpers that may or may not make system calls.

  66. Why might a program use a subsystem DLL function instead of invoking an NTDLL routine directly?

    Programs often use higher-level subsystem wrappers because they may add argument parsing, validation, or error handling.

  67. What decisions does the Windows scheduler make?

    The scheduler decides when and for how long each thread runs.

  68. How do service processes and system processes differ? Give an example of each.

    Service processes generally do not run in the context of a logged-in user; Windows Defender is an example. System processes have specific system-related purposes; the logon manager is an example.

  69. What is the Windows executive, and what are examples of its components?

    The executive is the higher-level part of kernel mode and includes components such as the memory manager and object manager.

  70. What roles do the Windows kernel, device drivers, and hardware abstraction layer serve?

    The kernel contains lower-level features such as the scheduler; device drivers control devices such as graphics cards; the HAL is the lowest, hardware-specific layer.

  71. What is the user-mode call chain from CreateProcess to the process-creation system call?

    CreateProcess in kernelbase calls CreateProcessInternalW, which gathers arguments and invokes NtCreateUserProcess through NTDLL.

  72. Where are the Windows system-call handler and many system-operation functions located?

    The system-call handler and operation-processing functions are in ntoskrnl.exe, which contains most of the Windows executive and kernel.

  73. What does swapgs do at the start of KiSystemCall64?

    KiSystemCall64 begins by executing swapgs, exchanging the current GS value with the value in the IA32_KERNEL_GS_BASE model-specific register.

  74. What does IA32_KERNEL_GS_BASE point to, and what structures are associated with the KPCR?

    IA32_KERNEL_GS_BASE points to the per-processor KPCR. Each processor has a KPCR containing core-specific data and a KPRCB.

  75. What stack-related changes occur as the system-call handler enters kernel mode?

    The handler saves the user stack pointer and switches to the current processor's kernel stack, then saves the old base pointer and points it into the stack.

  76. How does KiSystemServiceStart identify the system-call function to execute?

    KiSystemServiceStart accesses service-descriptor information and uses the service number to index the SSDT, whose entries contain offsets to system-call functions.

  77. What happens after a system call's requested operation completes?

    After the operation, the system increments a system-call count in the KPRCB, restores saved registers and GS, and executes sysret to return.

  78. Why is the system-call dispatcher called KiSystemCall64, or its “shadow” version?

    The shadow system-call dispatcher, KiSystemCall64, is a version that mitigates the Meltdown hardware vulnerability.

  79. What are Windows objects, and which component manages their lifetimes?

    Windows objects represent tracked resources such as processes, files, and threads. The object manager manages their lifetimes.

  80. How do object reference and handle counts affect an object's lifetime?

    Object headers include reference and handle counts. When these counts reach zero, the object manager can delete the object unless it is marked permanent.

  81. Why does user-mode code need a handle to interact with a Windows object?

    User-mode code opens a handle to interact with an object. A handle acts as a permission-bearing key to use the object through the Windows API.

  82. Where are a process's handles stored, and what should code do with a handle when finished?

    A process's open handles are stored in a table linked to that process. Code should close handles with CloseHandle when finished so the object manager can track when resources are no longer needed.

  83. How can kernel-mode code indicate that it needs an object without using a handle?

    Kernel-mode code can access objects directly, so it can use ObReferenceObject and ObDereferenceObject to increase and decrease an object's reference count instead of using handles.

  84. What information does a Windows security descriptor contain, and which ACLs does it reference?

    A security descriptor contains security information, such as the object's owner, and points to a system ACL (SACL) and a discretionary ACL (DACL).

  85. How do the purposes of a SACL and a DACL differ?

    A SACL specifies which operations and users should generate audit logs; a DACL specifies who has which permissions over an object.

  86. What are the main functions of an ACE's type, mask, and SID?

    An access control entry (ACE) can allow or deny access to a user. Its mask identifies the permissions granted or denied, and its SID identifies the affected entity.

  87. How are the permission bits in an ACE mask grouped in the described layout?

    The first 16 mask bits are object-specific; the next 8 represent standard rights such as delete or change owner; the following 4 can be ignored here; the final 4 represent generic rights such as read, write, execute, or all.

  88. What does a SID identify?

    A security identifier (SID) uniquely identifies an entity the system can authenticate.

  89. Are SIDs stored as the readable strings shown in Windows tools?

    The leading S and hyphens in a displayed SID are for readability; SIDs are stored as structured data, not as strings.

  90. What does the revision field in a SID represent, and what value is stated as valid as of 2026?

    The SID revision indicates its version; the source states that as of 2026, the version number can only be 1.

  91. What does a SID's authority field indicate, and what does authority 5 mean?

    The authority is a 48-bit number identifying the component that issued the SID. Authority 5 indicates the Windows security subsystem.

  92. What do the domain ID and RID identify in the described SID structure?

    For a standalone computer, the domain ID is a unique identifier associated with the device; in an Active Directory network, it identifies the domain managing the entity's security information. The relative identifier (RID) identifies the specific entity within the subauthority.

  93. How do file-backed and page-backed section objects differ?

    A file-backed section represents a file mapped into memory. A page-backed section represents no particular file and can be used to share memory between processes.

  94. Where is an object's name information stored when the object has a name?

    If a named object needs a name, an object name info header is placed before the object header.

  95. What does CreateFile do in the file-backed section example?

    CreateFile opens or creates a file and returns a handle. In the example, it opens an existing file with read and write permissions.

  96. What inconsistent failure values are contrasted for CreateFile and CreateFileMapping?

    CreateFile can signal failure with INVALID_HANDLE_VALUE (defined as negative one), while CreateFileMapping uses nullptr (zero). Windows API handle-return conventions can differ, so each function's documentation should be checked.

  97. What does CreateFileMapping do under the hood?

    CreateFileMapping appears to create a mapping, but it calls NtCreateSection underneath and returns a handle to a section object.

  98. How do MapViewOfFile and FlushViewOfFile work together?

    MapViewOfFile maps the file's memory pages into the process's address space. After modifications, FlushViewOfFile writes modified pages back to the file.

  99. What sequence demonstrates reading and modifying a file through a file-backed section?

    A file-backed mapping can let a process read and modify a file through mapped memory; the example maps a file, prints “hello world,” writes “goodbye world,” flushes changes, then unmaps and closes handles.

  100. How can two processes share data through a named page-backed section?

    A page-backed section can be created without a file handle, given a name, mapped by one process, and opened by name and mapped by another process to share data.

  101. What file and section operations begin the described NtCreateUserProcess sequence?

    NtCreateUserProcess opens the executable with IoCreateFileEx and creates a section object for mapping the file into memory with MmCreateSpecialImageSection.

  102. What does EPROCESS represent, and what are examples of data it points to?

    PspAllocateProcess creates the executive process object (EPROCESS), which represents a process and points to data such as its handle table and process ID.

  103. What is the purpose of the KPROCESS structure within EPROCESS?

    The KPROCESS is at the top of EPROCESS and separates kernel-specific process data from data used by the executive.

  104. Which object-manager function does PspAllocateProcess use to create the process object?

    PspAllocateProcess creates the process object through the object manager's ObCreateObjectEx function.

  105. What is an access token, and how does a newly launched process obtain one?

    An access token carries permissions. LSASS assigns a token to a logged-in session, and subsequently launched processes receive a copy.

  106. What is a process working set, and what limits does Windows set for it?

    A working set is the set of a process's memory pages currently loaded in physical memory. Windows sets minimum and maximum working-set sizes for processes.

  107. What other working sets exist besides those belonging to individual processes?

    In addition to process working sets, Windows has a system working set for kernel memory and a session working set for each session.

  108. How are Windows sessions, window stations, and desktops organized, and what is session zero for?

    A logon or remote connection creates a session; one also exists at the lock screen. Sessions contain window stations, which hold desktops and clipboard state; desktops contain windows, menus, and hooks. Session zero exists for system processes.

  109. What is the primary purpose of Windows sessions?

    Sessions isolate different user interfaces.

  110. What does each node in a process's VAD tree describe?

    A virtual address descriptor (VAD) tree has nodes describing allocated memory regions in a process.

  111. What allocation details can VirtualAlloc specify, and what kind of value is its allocation type?

    VirtualAlloc can specify an allocation's address, size, type, and protections. Its allocation type is a set of bit flags, including MEM_RESERVE and MEM_COMMIT.

  112. What is the difference between MEM_RESERVE and MEM_COMMIT?

    MEM_RESERVE alone reserves a region without charging its memory to the system; writing to it causes an access violation unless the region is committed. MEM_COMMIT charges the region, and both flags can be applied together.

  113. How can a VAD allocation lead to a page-table entry being created?

    The VAD records the allocated region, but page-table entries are not created at allocation time. On access, a page fault makes the system check the VAD; if the region is committed, the needed entry is created.

  114. What are the main steps performed by MmCreateProcessAddressSpace in the described sequence?

    MmCreateProcessAddressSpace initializes the working-set list, creates the process's VADs, and maps the executable's section into its address space.

  115. What is the PEB, and what information does it contain?

    The Process Environment Block (PEB) stores user-mode process information such as loaded DLLs, the image base address, and whether the process is being debugged.

  116. Which important user-mode library is mapped into the process during address-space setup?

    The system maps NTDLL into the process's address space.

  117. What does PspAllocateThread create or set up for a new thread?

    PspAllocateThread creates the executive thread object (ETHREAD), sets up the user stack, and allocates the thread environment block (TEB). Each thread has its own TEB for user-mode thread information.

  118. What does KeInitThread initialize for a new thread?

    KeInitThread sets up the KTHREAD within ETHREAD, creates a kernel stack, and initializes the thread context, which is stored on that stack.

  119. How do PspInsertProcess, PspInsertThread, KeStartThread, and KeReadyThread contribute to the final process-creation steps?

    PspInsertProcess creates and returns a process handle. PspInsertThread performs scheduling initialization and calls KeStartThread; a thread handle is then created, and KeReadyThread places the thread in a deferred-ready state.

  120. What does it mean for a thread to be in the deferred-ready state?

    A deferred-ready thread is prepared to run on a specific processor core but is not yet running.

  121. What information does CreateProcessInternalW send to CSRSS to register a new process?

    CreateProcessInternalW registers the new process with CSRSS by sending process and thread handles, the PEB address, and the section handle through CsrClientCallServer.

  122. What is CSRSS's role in the described process-creation flow, and how is its message sent?

    CSRSS is a continuously running system process that keeps a list of processes and threads in its session, with handles open to them. ALPC is used to send it the message.

  123. How does the new thread begin running the application after process creation?

    CreateProcessInternalW resumes the initially suspended thread. KxStartUserThread then constructs a trap frame and begins execution in the user-mode loader, LdrInitializeThunk.

  124. What does a trap frame describe, and what does the Kx prefix signify?

    A trap frame describes the CPU state at a transition. Kx-prefixed functions are processor-architecture-specific, so their implementations can differ across architectures.

  125. What does LdrInitializeThunk initialize, and where is the loader database referenced?

    LdrInitializeThunk is the image loader. It creates and initializes the loader database referenced by the PEB's Ldr field, which tracks DLLs loaded into the process.

  126. What PE structure does the loader parse to find a program's imported modules and functions?

    The loader examines the PE Import Directory Table (IDT) to determine which DLLs and functions the program imports.

  127. How can a program's Import Directory Table be located from its PE optional header?

    To locate the IDT, use its data-directory entry in the optional header as an offset and add that offset to the program's base address.

  128. What structures make up the IDT, and where might they be stored?

    The IDT is a sequence of IMAGE_IMPORT_DESCRIPTOR structures, found in a dedicated .idata section or sometimes within an .rdata section.

  129. Where is the number of IDT descriptors stored relative to the IDT offset in the data directories?

    The data-directory information includes the descriptor count immediately after the IDT offset.

  130. What do the Name, OriginalFirstThunk, and FirstThunk fields identify in an import descriptor?

    In an IMAGE_IMPORT_DESCRIPTOR, Name identifies the DLL; OriginalFirstThunk points to the Import Name Table (INT); and FirstThunk points to the Import Address Table (IAT).

  131. What do the INT and IAT contain?

    The INT and IAT each contain a sequence of IMAGE_THUNK_DATA structures describing functions imported from a DLL.

  132. How can an imported function be identified in an import table?

    An imported function can be identified by its name or by an ordinal, a number representing the specific function.

  133. How do the INT and IAT differ before and after import resolution?

    Initially, the INT and IAT are equal. The INT provides import names or ordinals; after resolution, the IAT's entries point to the imported functions' addresses.

  134. How does the loader resolve an imported function and record its address?

    The loader resolves a function by looking it up in the loaded DLL's export table, then places its address in the corresponding IAT entry.

  135. Why must the loader resolve imports for DLLs as well as for the main executable?

    Because a DLL may itself import functions from other libraries, the loader must also resolve the imports of loaded DLLs.

  136. Name three loader tasks beyond creating its database and resolving imports.

    The loader also initializes the heap, handles shims, and relocates images, among other tasks.

  137. What does the loader do when it has finished initializing the application?

    After its initialization work, the loader calls the application's entry point.

Card 1 of 137
Card 1 of 137

Ask anything

We've read this whole study set, so questions about it get the best answers.

FlashcardsQuizFill in the blanksWritten testLessonNotesPodcastContent