Skip to content
Deepak
 
Atlanta, GA
← blog

Lalala

· 2 min read

testing 1233524

hello so this is apparently the body I’m trying to see if it’s working or not.

so Im tryihg a littl esometfin

yoooooo

also uooooooo and iuuuuuuuu

does this show though

c
#include <stdio.h>

int main(void) {
    int n, quantum;

    printf("Number of processes: ");
    if (scanf("%d", &n) != 1 || n <= 0) return 1;

    int burst[n], remaining[n], waiting[n], turnaround[n];

    for (int i = 0; i < n; i++) {
        printf("Burst time for P%d: ", i + 1);
        if (scanf("%d", &burst[i]) != 1 || burst[i] < 0) return 1;
        remaining[i] = burst[i];
        waiting[i] = 0;
    }

    printf("Time quantum: ");
    if (scanf("%d", &quantum) != 1 || quantum <= 0) return 1;

    int time = 0;
    while (1) {
        int unfinished = 0;

        for (int i = 0; i < n; i++) {
            if (remaining[i] > 0) {
                unfinished = 1;
                int run = remaining[i] < quantum ? remaining[i] : quantum;
                time += run;
                remaining[i] -= run;
                if (remaining[i] == 0)
                    turnaround[i] = time;
            }
        }

        if (!unfinished) break;
    }

    double total_waiting = 0, total_turnaround = 0;
    printf("\nProcess\tBurst\tWaiting\tTurnaround\n");
    for (int i = 0; i < n; i++) {
        waiting[i] = turnaround[i] - burst[i];
        total_waiting += waiting[i];
        total_turnaround += turnaround[i];
        printf("P%d\t%d\t%d\t%d\n", i + 1, burst[i], waiting[i], turnaround[i]);
    }

    printf("Average waiting time: %.2f\n", total_waiting / n);
    printf("Average turnaround time: %.2f\n", total_turnaround / n);
    return 0;
}

Rendering test matrix

Inline text formatting

Plain text; bold; italic; strikethrough; underline; inline code; external link; @Deepak; inline math E=mc2E = mc^2.

Combined styles: bold + italic + strikethrough + underline.

Text colors and highlights

Gray text · Brown text · Orange text · Yellow text · Green text · Blue text · Purple text · Pink text · Red text

Gray background · Brown background · Orange background · Yellow background · Green background · Blue background · Purple background · Pink background · Red background

Heading levels

Heading level 1

Heading level 2

Heading level 3

Heading level 4

Line-break tests

Single source newline: First source line Second source line

Hard break: First line with a hard break Second line after the backslash break

Explicit break: first line second line after the br tag.

Separate paragraphs: First paragraph.

Second paragraph after a blank line.

Empty paragraph follows:

Text after the empty paragraph.

Lists and checkboxes

  • Unordered item one
  • Unordered item two
    • Nested unordered item
  1. Ordered item one
  2. Ordered item two
  3. Lowercase alphabetic item
  4. Next alphabetic item
  5. Lowercase Roman item
  6. Next Roman item

Unchecked task

Checked task

Checked todo block

Text containers

A colored quote block with styled text: bold inside a quote.
  • Nested quote bullet

Toggle heading sample

Hidden toggle body text.

  • Toggle child bullet
  • Colored list item

Code and equations

plain text
Plain fenced code sample
Line two in the code block
x+y=zx + y = z

Tables

Plain headerSecond header
Plain cellCell with a hard break second line
Styled headerSecond header
Colored cellStyled table text