Workflow and Source Panels
Work Queue Panel
Model queue-like work with a fixed C array and bounded loop.
Work Queue Panel
work_queue_panel.c
#include <stdio.h>
int main(void) {
int extraChoice = ;
const char *extra = "audit";
if (extraChoice == 0) {
extra = "review";
} else if (extraChoice == 2) {
extra = "ship";
}
const char *tasks[3] = {"read", extra, "write"};
int total = 0;
for (int i = 0; i < 3; i++) {
printf("run:%s\n", tasks[i]);
total++;
}
printf("extra=%s\n", extra);
printf("total=%d\n", total);
return 0;
}
#include <stdio.h>
int main(void) {
int extraChoice = ;
const char *extra = "audit";
if (extraChoice == 0) {
extra = "review";
} else if (extraChoice == 2) {
extra = "ship";
}
const char *tasks[3] = {"read", extra, "write"};
int total = 0;
for (int i = 0; i < 3; i++) {
printf("run:%s\n", tasks[i]);
total++;
}
printf("extra=%s\n", extra);
printf("total=%d\n", total);
return 0;
}
#include <stdio.h>
int main(void) {
int extraChoice = ;
const char *extra = "audit";
if (extraChoice == 0) {
extra = "review";
} else if (extraChoice == 2) {
extra = "ship";
}
const char *tasks[3] = {"read", extra, "write"};
int total = 0;
for (int i = 0; i < 3; i++) {
printf("run:%s\n", tasks[i]);
total++;
}
printf("extra=%s\n", extra);
printf("total=%d\n", total);
return 0;
}
queue panel
A fixed work list gives replay clear loop steps without depending on threads or host input.