ArticleslgStudy

science

Global Descriptor Table

Global Descriptor Table is a science topic covered in the lgStudy science library. This page brings together a partial reference excerpt, illustrations, worked examples, real-world applications and a short study plan, so you can understand Global Descriptor Table rather than just read about it. In short: The Global Descriptor Table (GDT) is a core part of Intel's x86 architecture that helps manage how memory is accessed and protected. Introduced with the Intel 80286 processor, it plays a key role in defining memory segments and their attributes: the base address, the size, and access privileges like executability and writability.

Global Descriptor Table — main illustration
Global Descriptor Table — illustration

Key takeaways

  • Global Descriptor Table belongs to science; place it in that map before memorising details.
  • Learn the definition first, then one example that makes the definition concrete.
  • Connect Global Descriptor Table to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of Global Descriptor Table from memory before moving on to harder problems.

Reference excerpt

The Global Descriptor Table (GDT) is a core part of Intel's x86 architecture that helps manage how memory is accessed and protected. Introduced with the Intel 80286 processor, it plays a key role in defining memory segments and their attributes: the base address, the size, and access privileges like executability and writability. Even though modern 64-bit systems rarely rely on segmentation, the GDT remains a required component for starting up the processor and managing certain system-level tasks.

Description The GDT helps isolate memory between application software and the operating system. In protected mode (a more advanced processor mode that allows memory protection), the GDT defines:

Code segments: regions of memory that contain executable instructions. Data segments: areas used to store program data. System segments, like the Task State Segment (TSS), which is used for multitasking support. Each entry in the GDT is 8 or 16 bytes long and holds a segment descriptor that defines the properties of one segment. Each descriptor includes access rights, ensuring programs cannot modify protected memory.

To use a segment, a program refers to it using a segment selector — a special value that tells the processor which GDT entry to use. The processor then loads this descriptor into a segment register, which holds both visible and hidden metadata about the segment.

GDT in 64-bit In 64-bit mode, segmentation is mostly disabled: all segment bases are treated as zero, and limits are ignored, creating a flat address space. However, the GDT is still required to define system descriptors such as the Task State Segment (TSS). Two segment registers, FS and GS, remain active and are often used by operating systems for thread-local storage or process-specific data (e.g., the Thread Environment Block in Windows or gs_base in Linux). Notably, Windows enforces strict protections: attempts to hook or modify the GDT in 64-bit versions will trigger a system crash (bug check).

Local Descriptor Table While the GDT defines system-wide segments, the Local Descriptor Table (LDT) can define segments that are private to a single process. Historically, operating systems used the LDT to separate each program’s memory into private regions, especially before paging was introduced with the Intel 80386. Today, LDTs are mostly obsolete but may still appear for compatibility with 16-bit or older 32-bit applications (e.g., DOS or OS/2 programs). The LDT is defined by an entry in the GDT and can include up to 8192 segment descriptors.

History and modern usage In early x86 systems (like the 80286), segmentation via the GDT and LDT was critical to implementing multitasking and memory isolation. Each process had its own LDT, while the GDT held global definitions. The system could automatically switch the current LDT when changing tasks, making segment-based isolation efficient. However, with the introduction of paging on the 80386, operating systems began using page-based virtual memory instead of segment-based memory. Paging allows fine-grained memory management in 4KB chunks and makes it easier to share or protect memory. As a result, modern operating systems like Windows, Linux, and macOS use a flat memory model, where all code and data segments span the entire address space. The GDT is still involved in system initialization, interrupt handling, and defining special structures like the TSS and LDT pointer. Legacy or compatibility modes (e.g., running 16-bit DOS or OS/2 code) may still use segmentation more actively. In such cases, a technique known as LDT tiling can be used, where the LDT is filled with descriptors that map fixed-size memory blocks (e.g., 64 KB each) to provide coverage for legacy applications.

References

External links Intel Architecture Software Developer's Manual Global Descriptor Table Archived 2009-10-17 at the Wayback Machine at OSDev.org GDT Tutorial Archived 2009-02-14 at the Wayback Machine at OSDev.org Bran's Kernel Dev GDT Tutorial Archived 2008-02-03 at the Wayback Machine BrokenThorn Protected Mode Archived 2018-04-23 at the Wayback Machine

Worked examples

Example 1 — a first encounter with Global Descriptor Table

Start with the simplest possible case. Write down what Global Descriptor Table claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In science, the smallest case is usually a single object, a single equation or a single measurement. Check that every symbol or term in your sentence has a meaning in that case.

Example 2 — changing one variable

Take the situation from Example 1 and change exactly one quantity: double it, halve it, or set it to zero. Predict what should happen to Global Descriptor Table before you calculate. Comparing your prediction with the result is the fastest way to find out whether you understand the idea or only the words.

Example 3 — an exam-style question

Typical questions about Global Descriptor Table ask you to (a) state it precisely, (b) apply it to given data, and (c) explain a limitation. Practise writing all three answers in under five minutes; the third part is what separates a full-mark answer from an average one.

Applications of Global Descriptor Table

In research
Global Descriptor Table appears in science research whenever the underlying quantities have to be modelled precisely. Papers usually cite it as a starting assumption and then explore where it breaks down.
In technology and industry
Engineering practice reuses Global Descriptor Table in design rules, simulations and safety margins. Knowing the idea lets you read a specification sheet and understand why the numbers look the way they do.
In the classroom
Global Descriptor Table is common in secondary-school and first-year university syllabi. It links to neighbouring topics Memory management, X86 architecture, so understanding it makes those chapters shorter.
In everyday life
Look for Global Descriptor Table outside the textbook — in sport, cooking, traffic, electronics or the sky above you. An example you found yourself is remembered far longer than one you were given.
Ask Teacher Smith questions about this articleOpens your AI tutor with a question about “Global Descriptor Table” →

How to study Global Descriptor Table in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what Global Descriptor Table means in your own words.
  3. Compare your version with the excerpt and mark what you missed.
  4. Work through the three examples above with pen and paper.
  5. Explain Global Descriptor Table out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is Global Descriptor Table in simple terms?

The Global Descriptor Table (GDT) is a core part of Intel's x86 architecture that helps manage how memory is accessed and protected. Introduced with the Intel 80286 processor, it plays a key role in defining memory segments and their attributes: the base address, the size, and access privileges lik…

Why does Global Descriptor Table matter?

Because it connects several science ideas at once: it gives you a definition you can apply, a quantity you can calculate, and a way to check whether a result is plausible.

How should I study Global Descriptor Table?

Read the excerpt, restate it from memory, then work through the examples and applications listed on this page. The five-step study plan above takes about twenty minutes.

What does this page cover?

It gives you a compact reference excerpt plus original lgStudy explanations, examples, applications and study material on Global Descriptor Table.

Tags

  • Memory management
  • X86 architecture

Keep exploring