Question
In this assignment, you will implement the Ghost of the MCP whose job it is to run and schedule a workload of programs on a system. The MCP will read a list of programs (with arguments) to run from a file, start up and run the programs as processes, and then schedule the processes to run concurrently in a time-sliced manner. In addition, the MCP will monitor the processes, keeping track of how the processes are using system resources. For extra credit, you can try to improve the MCP scheduling strategy to give more time to CPU-bound processes and less time to I/O-bound processes.

There are 4 parts to the project, each building on the other. The objective is to give you a good good introduction to processes, signals and signal handling, and scheduling. Part 5 is for extra credit.

All programming must be done in the C programming language. Your MCP and the programs it runs must be compilable and runnable in the CIS 415 Linux virtual machine (VM) environment. Learning the Linux systems calls is the purpose of the project. These are found in Section 2 of the Linux manual.

Part 1 – MCP Launches the Workload
The goal of Part 1 is to develop the first version of the MCP such that it can launch the workload and get all of the processes running together. MCP v1.0 will perform the following steps:
• Read the program workload from the specified input file. Each line in the file contains the name of the program and its arguments.
• For each program, launch the program to run as a process using the fork(), execvp() (or some varient), and other system calls. To make things simpler, assume that the programs will run in the environment used to execute the MCP.
• Once all of the programs are running, wait for each program to terminate.
• After all programs have terminated, the MCP will exit.

The launching of each workload program will look something like this in pseudocode:
for i=0, numprograms-1 {
read program[i] and its args[i] from the file; pid[i] = fork(); if (pid[i] < 0) {
handle the error appropriately;
}
if (pid[i] == 0) {
execvp(program[i], arguments[i]);
} } for i=0, numprograms-1 {
wait(pid[i]);
}
While this may appear to be simple, there are many, many things that can go wrong. You should spend some time reading the entire man page for all of these system calls.
Also, you will need to figure out how to read the programs and their arguments from the “workload” file and get them in the proper form to call execvp. These programs can be anything that will run in the same environment as the MCP, meaning the environment in which the MCP is launched. A set of programs will be provided to evaluate your work, but you should also construct your own.

Part 2 – MCP Controls the Workload
Successful completion of Part 1 will give you a basic working MCP. However, if we just wanted to run all the workload programs at the same time, we might as well use a shell script. Rather, our ultimate goal is to schedule the programs in the workload to run in a time-shared manner. Part 2 will take the first step to allow the MCP to gain control for this purpose. Actually, it will take two steps.
Step 1 will implement a way for the MCP to stop all forked (MPC) child processes right before they call execvp(). This gives the MCP back control before any of the workload programs are launched. The idea is to have each forked child process wait for a SIGUSR1 signal before calling execvp() with its associated workload program. The sigwait() system call will be useful here. Note, until the forked child process does the execvp() call, it is running the MPC progam code.

Once Step 1 is working, the MPC is in a state where each child process is waiting on a SIGUSR1 signal. The first time a workload process is selected to run by the MPC scheduler, it will be started by the MPC sending the SIGUSR1 signal to it. Once a child process receives the SIGUSR1 signal, it launches the associated workload program with the execvp() call.
Step 2 will implement the needed mechanism for the MCP to signal a running process to stop (using the SIGSTOP signal) and then to continue it again (using the SIGCONT signal). This is the mechanism that the MPC will use on a process after it has been started the first time. Sending a SIGSTOP signal to a running process is like running a program at the command line and typing Ctrl-Z to suspend (stop) it. Sending a suspended process a SIGCONT signal is like bringing a suspended job into the foreground at the command line.
Thus, in Part 2, you will implement Step 1 and 2 to create a MCP v2.0 building on MCP v1.0 in the following way:
• Immediately after each program is created using fork(), the forked MPC child process waits on the SIGUSR1 signal before calling execvp().
• After all of the MPC child processes have been forked and are now waiting, the MPC parent process sends each child process a SIGUSR1 signal to wake them up. Each child process will then return from the sigwait() and call execvp() to run the workload program.
• After all of the workload programs have been launched and are now executing, the MPC sends each workload process a SIGSTOP signal to suspend them.
• After all of the workload processes have been suspended, the MPC send each program a SIGCONT signal to wake them up.
• Again, once all of the processes are back up and running, for each program, the MCP waits for it to terminate. After all programs have terminated, the MCP will exit.

MCP 2.0 demonstrates that we can control the suspending and continuing of processes. You should test out that things are working properly. One way to do this is to put in MCP output messages to indicate what steps the MCP is presently taking and for which child process. Again, a set of programs will be provided to evaluate your work, but you should also construct your own.
Handling asynchronous signaling is far more nuanced than described here. You should spend some time reading the entire man pages for these system calls and referencing online and printed resources (such as the books suggested on the course web page) to gain a better understanding of signals and signal handling.

Part 3 – MCP Schedules Processes
Now that the MCP can stop and continue workload processes, we want to implement a MCP scheduler that will run the processes according to some scheduling policy. The simplest policy is to equally share the processor by giving each process the same amount of time to run (e.g., 1 second). The general situation is that there is 1 workload process executing. After its time slice has completed, we want to stop that process and start up another ready process. The MCP decides which is the next workload process to run, starts the timer, and continues that process.

MCP 2.0 knows how to resume a process, but we need a way to have it run for only a certain amount of time. Note, if some workload process is running, it is still the case that the MCP is running “concurrently” with it. Thus, one way to approach the problem is for the MCP to poll the system time to determine when the time slice is expended. This is inefficient and not as accurate as it can be. Alternatively, you can set an alarm using the alarm(2) system call. This tells the operating system to deliver a SIGALRM signal after some specified time. Signal handling is done by registering a signal handling function with the operating system. This SIGALRM signal handler is implemented in the MCP. When the signal is delivered, the MCP will be interrupted and the signal handling function will be executed. When it does, the MCP will suspend the running workload process, decide on the next workload process to run, and send it a SIGCONT signal, reset the alarm, and continuing with whatever else it is doing.

Your new and improved MCP 3.0 is now a working workload process scheduler. However, you need to take care of a few things. For instance, there is the question of how to determine if a workload process is still executing. At some point (we hope), the workload process is going to terminate. Remember, this workload process is a child process of the MCP. How does the MCP know that the workload process has terminated? In MCP 2.0, we just called wait(). Is that sufficient now? Be careful.
Again, please think about how to test that your MCP 3.0 is working and provide some demonstration. Having the MCP produce output messages at scheduling points is one way to do this.

Part 4 – MCP Knows All
With MCP 3.0, the workload processes are able to be scheduled to run with each getting an “equal” share of the processor. Note, MCP 3.0 should be able to work with any set of workload programs it reads in. The workload programs we will provide you will (ideally) give some feedback to you that your MCP 3.0 is working correctly. However, you should also write your own simple test programs. It is also possible to see how the workload execution is proceeding by looking in the /proc directory for information on the workload processes.

In Part 4, you will add some functionality to the MCP to gather relevant data from /proc that conveys some information about what system resources each workload process is consuming. This should include something about execution time, memory used, and I/O. It is up to you to decide what to look at, analyze, and present. Do not just dump out everything in /proc for each process. The objective is to give you some experience with reading, interpreting, and analyzing process information. Your MCP 4.0 should output the analyzed process information periodically as the workload programs are executing. One thought is to do something similar to what the Linux top(1) program does.

Part 5 (Extra) – Adaptive MCP
When the MCP schedules a workload process to run, it assumes that the process will actually execute the entire time of the time slice. However, suppose that the process is doing I/O, for example, waiting for the user to enter something on the keyboard. In general, workload processes could be doing different things and thus have different execution behaviors. Some processes may be compute bound while others may be I/O bound. If the MCP knew something about process behavior, it is possible that the time slice could be adjusted for each type of process. For instance, I/O bound processes might be given a little less time and compute bound processes a bit more. By adjusting the time slice, it is possible that the entire workload could run more efficiently.
Part 5 is to implement some form of adjustable scheduler that uses process information to set processspecific time intervals.
System Calls
In this project, you will likely want to learn about these system calls:
• fork(2)
• execvp(2)
• wait(2)
• sigwait(2)
• alarm(2)
• signal(2)
• kill(2)
• exit(2)
• read(2)
• write(2)
• open(2)
• close(2)

Error Handling
All system call functions that you use will report errors via the return value. As a general rule, if the return value is less than zero, then an error has occurred and errno is set accordingly. You must check your error conditions and report errors. To expedite the error checking process, we will allow you to use the perror(3) library function. Although you are allowed to use perror, it does not mean that you should report errors with voluminous verbosity. Report fully but concisely.

Memory Errors
You are required to check your code for memory errors. This is a non-trivial task, but a very important one. Code that contains memory leaks and memory violations will have marks deducted. Fortunately, the valgrind tool can help you clean these issues up. It is provided as part of your Linux VM. Remember that valgrind, while quite useful, is only a tool and not a solution. You must still find and fix any bugs that are located by valgrind, but there are no guarantees that it will find every memory error in your code: especially those that rely on user input.

Developing Your Code
The best way to develop your code is in Linux running inside the virtual machine image provided to you. This way, if you crash the system, it is straightforward to restart. This also gives you the benefit of taking snapshots of system state right before you do something potentially risky or hazardous, so that if something goes horribly awry you can easily roll back to a safe state. You may use the room 100 machines to run the Linux VM image within a Virtualbox environment, or run natively or within a VM on your own personal machine. Importantly, do not use ix for this assignment.
You should use your GIT repositories for keep track of your programming work.
Solution Preview

These solutions may offer step-by-step problem-solving explanations or good writing examples that include modern styles of formatting and construction of bibliographies out of text citations and references.
Students may use these solutions for personal skill-building and practice.
Unethical use is strictly forbidden.

#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <string.h>
#include <signal.h>

void parse(char *line, char **arguments);

int main(int argc, char** argv) {
   
    char line[1024];             /* the input line                */
    char *arguments[64];             /* the command line argument      */
   
    // array of pid
    pid_t * pid ;
    FILE * fp;
    int index;
    int number_of_line; // number of line in the file
    int i;
         
    if (argc != 3) {
       printf("./MCP file_name number_of_program\n");
       exit(0);
    }
This is only a preview of the solution.
Please use the purchase button to see the entire solution.
By purchasing this solution you'll be able to access the following files:
Solution.c
SolutionInput.txt
Purchase Solution
$45.00 $22.5
Google Pay
Amazon
Paypal
Mastercard
Visacard
Discover
Amex
View Available Computer Science Tutors 529 tutors matched
Ionut
(ionut)
Hi! MSc Applied Informatics & Computer Science Engineer. Practical experience in many CS & IT branches.Research work & homework
5/5 (5,654+ sessions)
2 hours avg response
Leo
(Leo)
Hi! I have been a professor in New York and taught in a math department and in an applied math department.
4.9/5 (5,652+ sessions)
2 hours avg response
Pranay
(math1983)
Ph.D. in mathematics and working as an Assistant Professor in University. I can provide help in mathematics, statistics and allied areas.
4.6/5 (5,512+ sessions)
1 hour avg response

Similar Homework Solutions

8.1.0PHP Version558msRequest Duration45MBMemory UsageGET college-homework-library/{category}/{subject}/{id}Route
    • Booting (398ms)time
    • Application (159ms)time
    • 1 x Booting (71.42%)
      398ms
      1 x Application (28.57%)
      159ms
      • Illuminate\Routing\Events\Routing (1.28ms)
      • Illuminate\Routing\Events\RouteMatched (535μs)
      • Illuminate\Foundation\Events\LocaleUpdated (7.13ms)
      • eloquent.booting: App\Models\HomeworkLibrary\HomeworkLibrary (254μs)
      • eloquent.booted: App\Models\HomeworkLibrary\HomeworkLibrary (308μs)
      • Illuminate\Database\Events\ConnectionEstablished (1.42ms)
      • Illuminate\Database\Events\StatementPrepared (10.63ms)
      • Illuminate\Database\Events\QueryExecuted (1.66ms)
      • eloquent.retrieved: App\Models\HomeworkLibrary\HomeworkLibrary (120μs)
      • eloquent.booting: App\Models\Subject (67μs)
      • eloquent.booted: App\Models\Subject (52μs)
      • Illuminate\Database\Events\StatementPrepared (1.71ms)
      • Illuminate\Database\Events\QueryExecuted (1.48ms)
      • eloquent.retrieved: App\Models\Subject (135μs)
      • eloquent.booting: App\Models\HomeworkLibrary\HomeworkLibraryFile (151μs)
      • eloquent.booted: App\Models\HomeworkLibrary\HomeworkLibraryFile (60μs)
      • Illuminate\Database\Events\StatementPrepared (1.48ms)
      • Illuminate\Database\Events\QueryExecuted (1.71ms)
      • eloquent.retrieved: App\Models\HomeworkLibrary\HomeworkLibraryFile (117μs)
      • eloquent.retrieved: App\Models\HomeworkLibrary\HomeworkLibraryFile (20μs)
      • eloquent.retrieved: App\Models\HomeworkLibrary\HomeworkLibraryFile (13μs)
      • eloquent.retrieved: App\Models\HomeworkLibrary\HomeworkLibraryFile (12μs)
      • eloquent.booting: App\Models\SubjectCat (981μs)
      • eloquent.booted: App\Models\SubjectCat (51μs)
      • Illuminate\Database\Events\StatementPrepared (787μs)
      • Illuminate\Database\Events\QueryExecuted (1.36ms)
      • eloquent.retrieved: App\Models\SubjectCat (127μs)
      • Illuminate\Cache\Events\CacheHit (15.43ms)
      • Illuminate\Cache\Events\CacheMissed (272μs)
      • Illuminate\Database\Events\StatementPrepared (1.15ms)
      • Illuminate\Database\Events\QueryExecuted (3.98ms)
      • eloquent.retrieved: App\Models\HomeworkLibrary\HomeworkLibrary (121μs)
      • eloquent.retrieved: App\Models\HomeworkLibrary\HomeworkLibrary (22μs)
      • eloquent.retrieved: App\Models\HomeworkLibrary\HomeworkLibrary (14μs)
      • eloquent.retrieved: App\Models\HomeworkLibrary\HomeworkLibrary (12μs)
      • eloquent.retrieved: App\Models\HomeworkLibrary\HomeworkLibrary (12μs)
      • eloquent.retrieved: App\Models\HomeworkLibrary\HomeworkLibrary (11μs)
      • Illuminate\Database\Events\StatementPrepared (1.42ms)
      • Illuminate\Database\Events\QueryExecuted (1.35ms)
      • eloquent.retrieved: App\Models\Subject (135μs)
      • Illuminate\Cache\Events\KeyWritten (1.08ms)
      • Illuminate\Database\Events\StatementPrepared (2.51ms)
      • Illuminate\Database\Events\QueryExecuted (1.18ms)
      • Illuminate\Database\Events\StatementPrepared (934μs)
      • Illuminate\Database\Events\QueryExecuted (1.33ms)
      • Illuminate\Database\Events\StatementPrepared (851μs)
      • Illuminate\Database\Events\QueryExecuted (1.04ms)
      • eloquent.retrieved: App\Models\HomeworkLibrary\HomeworkLibraryFile (80μs)
      • eloquent.retrieved: App\Models\HomeworkLibrary\HomeworkLibraryFile (26μs)
      • Illuminate\Cache\Events\CacheHit (1.72ms)
      • creating: homework.show (557μs)
      • composing: homework.show (233μs)
      • creating: components.breadcrumbs (388μs)
      • composing: components.breadcrumbs (185μs)
      • Illuminate\Database\Events\StatementPrepared (1.72ms)
      • Illuminate\Database\Events\QueryExecuted (1.37ms)
      • eloquent.retrieved: App\Models\SubjectCat (114μs)
      • Illuminate\Cache\Events\CacheHit (4.35ms)
      • Illuminate\Cache\Events\CacheHit (215μs)
      • Illuminate\Cache\Events\CacheHit (210μs)
      • Illuminate\Cache\Events\CacheHit (173μs)
      • Illuminate\Cache\Events\CacheHit (209μs)
      • Illuminate\Cache\Events\CacheHit (176μs)
      • Illuminate\Cache\Events\CacheHit (242μs)
      • Illuminate\Cache\Events\CacheHit (172μs)
      • Illuminate\Cache\Events\CacheHit (193μs)
      • Illuminate\Cache\Events\CacheHit (166μs)
      • Illuminate\Cache\Events\CacheHit (191μs)
      • Illuminate\Cache\Events\CacheHit (165μs)
      • Illuminate\Cache\Events\CacheHit (435μs)
      • Illuminate\Cache\Events\CacheHit (241μs)
      • Illuminate\Cache\Events\CacheHit (269μs)
      • Illuminate\Cache\Events\CacheHit (197μs)
      • Illuminate\Cache\Events\CacheHit (213μs)
      • Illuminate\Cache\Events\CacheHit (186μs)
      • Illuminate\Cache\Events\CacheHit (212μs)
      • Illuminate\Cache\Events\CacheHit (185μs)
      • Illuminate\Cache\Events\CacheHit (218μs)
      • Illuminate\Cache\Events\CacheHit (188μs)
      • Illuminate\Cache\Events\CacheHit (223μs)
      • Illuminate\Cache\Events\CacheHit (171μs)
      • Illuminate\Cache\Events\CacheHit (335μs)
      • Illuminate\Cache\Events\CacheHit (187μs)
      • Illuminate\Cache\Events\CacheHit (282μs)
      • Illuminate\Cache\Events\CacheHit (176μs)
      • Illuminate\Cache\Events\CacheHit (222μs)
      • Illuminate\Cache\Events\CacheHit (189μs)
      • Illuminate\Cache\Events\CacheHit (234μs)
      • Illuminate\Cache\Events\CacheHit (225μs)
      • Illuminate\Cache\Events\CacheHit (218μs)
      • Illuminate\Cache\Events\CacheHit (171μs)
      • Illuminate\Cache\Events\CacheHit (212μs)
      • Illuminate\Cache\Events\CacheHit (188μs)
      • Illuminate\Cache\Events\CacheHit (309μs)
      • Illuminate\Cache\Events\CacheHit (191μs)
      • Illuminate\Cache\Events\CacheHit (193μs)
      • Illuminate\Cache\Events\CacheHit (166μs)
      • Illuminate\Cache\Events\CacheHit (188μs)
      • Illuminate\Cache\Events\CacheHit (168μs)
      • Illuminate\Cache\Events\CacheHit (190μs)
      • Illuminate\Cache\Events\CacheHit (164μs)
      • Illuminate\Cache\Events\CacheHit (218μs)
      • Illuminate\Cache\Events\CacheHit (193μs)
      • Illuminate\Cache\Events\CacheHit (204μs)
      • Illuminate\Cache\Events\CacheHit (166μs)
      • Illuminate\Cache\Events\CacheHit (213μs)
      • Illuminate\Cache\Events\CacheHit (187μs)
      • Illuminate\Cache\Events\CacheHit (229μs)
      • Illuminate\Cache\Events\CacheHit (246μs)
      • Illuminate\Cache\Events\CacheHit (232μs)
      • Illuminate\Cache\Events\CacheHit (187μs)
      • Illuminate\Cache\Events\CacheHit (360μs)
      • Illuminate\Cache\Events\CacheHit (186μs)
      • Illuminate\Cache\Events\CacheHit (212μs)
      • Illuminate\Cache\Events\CacheHit (171μs)
      • Illuminate\Cache\Events\CacheHit (199μs)
      • Illuminate\Cache\Events\CacheHit (166μs)
      • Illuminate\Cache\Events\CacheHit (187μs)
      • Illuminate\Cache\Events\CacheHit (168μs)
      • Illuminate\Cache\Events\CacheHit (217μs)
      • Illuminate\Cache\Events\CacheHit (189μs)
      • Illuminate\Cache\Events\CacheHit (214μs)
      • Illuminate\Cache\Events\CacheHit (186μs)
      • Illuminate\Cache\Events\CacheHit (208μs)
      • Illuminate\Cache\Events\CacheHit (185μs)
      • Illuminate\Cache\Events\CacheHit (208μs)
      • Illuminate\Cache\Events\CacheHit (202μs)
      • Illuminate\Cache\Events\CacheHit (267μs)
      • Illuminate\Cache\Events\CacheHit (170μs)
      • Illuminate\Cache\Events\CacheHit (214μs)
      • Illuminate\Cache\Events\CacheHit (296μs)
      • Illuminate\Cache\Events\CacheHit (215μs)
      • Illuminate\Cache\Events\CacheHit (185μs)
      • Illuminate\Cache\Events\CacheHit (209μs)
      • Illuminate\Cache\Events\CacheHit (183μs)
      • Illuminate\Cache\Events\CacheHit (213μs)
      • Illuminate\Cache\Events\CacheHit (187μs)
      • Illuminate\Cache\Events\CacheHit (210μs)
      • Illuminate\Cache\Events\CacheHit (183μs)
      • Illuminate\Cache\Events\CacheHit (209μs)
      • Illuminate\Cache\Events\CacheHit (184μs)
      • Illuminate\Cache\Events\CacheHit (209μs)
      • Illuminate\Cache\Events\CacheHit (184μs)
      • Illuminate\Cache\Events\CacheHit (210μs)
      • Illuminate\Cache\Events\CacheHit (183μs)
      • Illuminate\Cache\Events\CacheHit (226μs)
      • Illuminate\Cache\Events\CacheHit (174μs)
      • Illuminate\Cache\Events\CacheHit (233μs)
      • Illuminate\Cache\Events\CacheHit (167μs)
      • Illuminate\Cache\Events\CacheHit (215μs)
      • Illuminate\Cache\Events\CacheHit (188μs)
      • Illuminate\Cache\Events\CacheHit (214μs)
      • Illuminate\Cache\Events\CacheHit (161μs)
      • Illuminate\Cache\Events\CacheHit (180μs)
      • Illuminate\Cache\Events\CacheHit (157μs)
      • Illuminate\Cache\Events\CacheHit (180μs)
      • Illuminate\Cache\Events\CacheHit (157μs)
      • Illuminate\Cache\Events\CacheHit (178μs)
      • Illuminate\Cache\Events\CacheHit (169μs)
      • Illuminate\Cache\Events\CacheHit (213μs)
      • Illuminate\Cache\Events\CacheHit (170μs)
      • Illuminate\Cache\Events\CacheHit (226μs)
      • Illuminate\Cache\Events\CacheHit (183μs)
      • Illuminate\Cache\Events\CacheHit (225μs)
      • Illuminate\Cache\Events\CacheHit (191μs)
      • Illuminate\Cache\Events\CacheHit (213μs)
      • Illuminate\Cache\Events\CacheHit (199μs)
      • Illuminate\Cache\Events\CacheHit (204μs)
      • Illuminate\Cache\Events\CacheHit (220μs)
      • Illuminate\Cache\Events\CacheHit (223μs)
      • Illuminate\Cache\Events\CacheHit (188μs)
      • Illuminate\Cache\Events\CacheHit (901μs)
      • Illuminate\Cache\Events\CacheHit (180μs)
      • Illuminate\Cache\Events\CacheHit (195μs)
      • Illuminate\Cache\Events\CacheHit (166μs)
      • Illuminate\Cache\Events\CacheHit (190μs)
      • Illuminate\Cache\Events\CacheHit (165μs)
      • Illuminate\Cache\Events\CacheHit (188μs)
      • Illuminate\Cache\Events\CacheHit (164μs)
      • Illuminate\Cache\Events\CacheHit (188μs)
      • Illuminate\Cache\Events\CacheHit (163μs)
      • Illuminate\Cache\Events\CacheHit (185μs)
      • Illuminate\Cache\Events\CacheHit (165μs)
      • Illuminate\Cache\Events\CacheHit (185μs)
      • Illuminate\Cache\Events\CacheHit (182μs)
      • Illuminate\Cache\Events\CacheHit (188μs)
      • Illuminate\Cache\Events\CacheHit (271μs)
      • Illuminate\Cache\Events\CacheHit (212μs)
      • Illuminate\Cache\Events\CacheHit (165μs)
      • Illuminate\Cache\Events\CacheHit (207μs)
      • Illuminate\Cache\Events\CacheHit (156μs)
      • Illuminate\Cache\Events\CacheHit (178μs)
      • Illuminate\Cache\Events\CacheHit (155μs)
      • Illuminate\Cache\Events\CacheHit (180μs)
      • Illuminate\Cache\Events\CacheHit (154μs)
      • Illuminate\Cache\Events\CacheHit (176μs)
      • Illuminate\Cache\Events\CacheHit (154μs)
      • Illuminate\Cache\Events\CacheHit (194μs)
      • Illuminate\Cache\Events\CacheHit (166μs)
      • Illuminate\Cache\Events\CacheHit (186μs)
      • Illuminate\Cache\Events\CacheHit (164μs)
      • Illuminate\Cache\Events\CacheHit (353μs)
      • Illuminate\Cache\Events\CacheHit (179μs)
      • Illuminate\Cache\Events\CacheHit (177μs)
      • Illuminate\Cache\Events\CacheHit (161μs)
      • Illuminate\Cache\Events\CacheHit (198μs)
      • Illuminate\Cache\Events\CacheHit (167μs)
      • Illuminate\Cache\Events\CacheHit (232μs)
      • Illuminate\Cache\Events\CacheHit (169μs)
      • Illuminate\Cache\Events\CacheHit (186μs)
      • Illuminate\Cache\Events\CacheHit (164μs)
      • Illuminate\Cache\Events\CacheHit (182μs)
      • Illuminate\Cache\Events\CacheHit (165μs)
      • Illuminate\Cache\Events\CacheHit (190μs)
      • Illuminate\Cache\Events\CacheHit (170μs)
      • Illuminate\Cache\Events\CacheHit (178μs)
      • Illuminate\Cache\Events\CacheHit (158μs)
      • Illuminate\Cache\Events\CacheHit (177μs)
      • Illuminate\Cache\Events\CacheHit (159μs)
      • Illuminate\Cache\Events\CacheHit (223μs)
      • Illuminate\Cache\Events\CacheHit (218μs)
      • Illuminate\Cache\Events\CacheHit (192μs)
      • Illuminate\Cache\Events\CacheHit (177μs)
      • Illuminate\Cache\Events\CacheHit (186μs)
      • Illuminate\Cache\Events\CacheHit (159μs)
      • Illuminate\Cache\Events\CacheHit (176μs)
      • Illuminate\Cache\Events\CacheHit (157μs)
      • Illuminate\Cache\Events\CacheHit (192μs)
      • Illuminate\Cache\Events\CacheHit (162μs)
      • Illuminate\Cache\Events\CacheHit (276μs)
      • Illuminate\Cache\Events\CacheHit (160μs)
      • Illuminate\Cache\Events\CacheHit (176μs)
      • Illuminate\Cache\Events\CacheHit (150μs)
      • Illuminate\Cache\Events\CacheHit (173μs)
      • Illuminate\Cache\Events\CacheHit (159μs)
      • Illuminate\Cache\Events\CacheHit (174μs)
      • Illuminate\Cache\Events\CacheHit (159μs)
      • Illuminate\Cache\Events\CacheHit (176μs)
      • Illuminate\Cache\Events\CacheHit (156μs)
      • Illuminate\Cache\Events\CacheHit (223μs)
      • Illuminate\Cache\Events\CacheHit (187μs)
      • Illuminate\Cache\Events\CacheHit (191μs)
      • Illuminate\Cache\Events\CacheHit (179μs)
      • Illuminate\Cache\Events\CacheHit (191μs)
      • Illuminate\Cache\Events\CacheHit (167μs)
      • Illuminate\Cache\Events\CacheHit (180μs)
      • Illuminate\Cache\Events\CacheHit (159μs)
      • Illuminate\Cache\Events\CacheHit (184μs)
      • Illuminate\Cache\Events\CacheHit (151μs)
      • Illuminate\Cache\Events\CacheHit (175μs)
      • Illuminate\Cache\Events\CacheHit (173μs)
      • Illuminate\Cache\Events\CacheHit (190μs)
      • Illuminate\Cache\Events\CacheHit (223μs)
      • Illuminate\Cache\Events\CacheHit (214μs)
      • Illuminate\Cache\Events\CacheHit (168μs)
      • Illuminate\Cache\Events\CacheHit (208μs)
      • Illuminate\Cache\Events\CacheHit (166μs)
      • Illuminate\Cache\Events\CacheHit (213μs)
      • Illuminate\Cache\Events\CacheHit (185μs)
      • Illuminate\Cache\Events\CacheHit (181μs)
      • Illuminate\Cache\Events\CacheHit (159μs)
      • Illuminate\Cache\Events\CacheHit (175μs)
      • Illuminate\Cache\Events\CacheHit (158μs)
      • Illuminate\Cache\Events\CacheHit (176μs)
      • Illuminate\Cache\Events\CacheHit (154μs)
      • Illuminate\Cache\Events\CacheHit (191μs)
      • Illuminate\Cache\Events\CacheHit (161μs)
      • Illuminate\Cache\Events\CacheHit (179μs)
      • Illuminate\Cache\Events\CacheHit (161μs)
      • Illuminate\Cache\Events\CacheHit (190μs)
      • Illuminate\Cache\Events\CacheHit (158μs)
      • Illuminate\Cache\Events\CacheHit (988μs)
      • Illuminate\Cache\Events\CacheHit (171μs)
      • Illuminate\Cache\Events\CacheHit (189μs)
      • Illuminate\Cache\Events\CacheHit (170μs)
      • Illuminate\Cache\Events\CacheHit (179μs)
      • Illuminate\Cache\Events\CacheHit (159μs)
      • Illuminate\Cache\Events\CacheHit (175μs)
      • Illuminate\Cache\Events\CacheHit (168μs)
      • Illuminate\Cache\Events\CacheHit (229μs)
      • Illuminate\Cache\Events\CacheHit (166μs)
      • Illuminate\Cache\Events\CacheHit (174μs)
      • Illuminate\Cache\Events\CacheHit (158μs)
      • Illuminate\Cache\Events\CacheHit (177μs)
      • Illuminate\Cache\Events\CacheHit (158μs)
      • Illuminate\Cache\Events\CacheHit (178μs)
      • Illuminate\Cache\Events\CacheHit (159μs)
      • Illuminate\Cache\Events\CacheHit (174μs)
      • Illuminate\Cache\Events\CacheHit (158μs)
      • Illuminate\Cache\Events\CacheHit (229μs)
      • Illuminate\Cache\Events\CacheHit (205μs)
      • Illuminate\Cache\Events\CacheHit (205μs)
      • Illuminate\Cache\Events\CacheHit (218μs)
      • Illuminate\Cache\Events\CacheHit (189μs)
      • Illuminate\Cache\Events\CacheHit (159μs)
      • Illuminate\Cache\Events\CacheHit (183μs)
      • Illuminate\Cache\Events\CacheHit (159μs)
      • Illuminate\Cache\Events\CacheHit (184μs)
      • Illuminate\Cache\Events\CacheHit (163μs)
      • Illuminate\Cache\Events\CacheHit (178μs)
      • Illuminate\Cache\Events\CacheHit (157μs)
      • Illuminate\Cache\Events\CacheHit (176μs)
      • Illuminate\Cache\Events\CacheHit (219μs)
      • Illuminate\Cache\Events\CacheHit (176μs)
      • Illuminate\Cache\Events\CacheHit (159μs)
      • Illuminate\Cache\Events\CacheHit (177μs)
      • Illuminate\Cache\Events\CacheHit (157μs)
      • Illuminate\Cache\Events\CacheHit (180μs)
      • Illuminate\Cache\Events\CacheHit (158μs)
      • Illuminate\Cache\Events\CacheHit (189μs)
      • Illuminate\Cache\Events\CacheHit (168μs)
      • Illuminate\Cache\Events\CacheHit (184μs)
      • Illuminate\Cache\Events\CacheHit (174μs)
      • Illuminate\Cache\Events\CacheHit (177μs)
      • Illuminate\Cache\Events\CacheHit (192μs)
      • Illuminate\Cache\Events\CacheHit (191μs)
      • Illuminate\Cache\Events\CacheHit (168μs)
      • Illuminate\Cache\Events\CacheHit (179μs)
      • Illuminate\Cache\Events\CacheHit (159μs)
      • Illuminate\Cache\Events\CacheHit (173μs)
      • Illuminate\Cache\Events\CacheHit (158μs)
      • Illuminate\Cache\Events\CacheHit (260μs)
      • Illuminate\Cache\Events\CacheHit (174μs)
      • Illuminate\Cache\Events\CacheHit (306μs)
      • Illuminate\Cache\Events\CacheHit (200μs)
      • Illuminate\Cache\Events\CacheHit (183μs)
      • Illuminate\Cache\Events\CacheHit (158μs)
      • Illuminate\Cache\Events\CacheHit (178μs)
      • Illuminate\Cache\Events\CacheHit (157μs)
      • Illuminate\Cache\Events\CacheHit (177μs)
      • Illuminate\Cache\Events\CacheHit (161μs)
      • Illuminate\Cache\Events\CacheHit (184μs)
      • Illuminate\Cache\Events\CacheHit (162μs)
      • Illuminate\Cache\Events\CacheHit (182μs)
      • Illuminate\Cache\Events\CacheHit (240μs)
      • Illuminate\Cache\Events\CacheHit (178μs)
      • Illuminate\Cache\Events\CacheHit (223μs)
      • Illuminate\Cache\Events\CacheHit (184μs)
      • Illuminate\Cache\Events\CacheHit (156μs)
      • Illuminate\Cache\Events\CacheHit (182μs)
      • Illuminate\Cache\Events\CacheHit (164μs)
      • Illuminate\Cache\Events\CacheHit (179μs)
      • Illuminate\Cache\Events\CacheHit (157μs)
      • Illuminate\Cache\Events\CacheHit (186μs)
      • Illuminate\Cache\Events\CacheHit (148μs)
      • Illuminate\Cache\Events\CacheHit (179μs)
      • Illuminate\Cache\Events\CacheHit (163μs)
      • Illuminate\Cache\Events\CacheHit (176μs)
      • Illuminate\Cache\Events\CacheHit (157μs)
      • Illuminate\Cache\Events\CacheHit (177μs)
      • Illuminate\Cache\Events\CacheHit (155μs)
      • Illuminate\Cache\Events\CacheHit (187μs)
      • Illuminate\Cache\Events\CacheHit (165μs)
      • Illuminate\Cache\Events\CacheHit (182μs)
      • Illuminate\Cache\Events\CacheHit (157μs)
      • Illuminate\Cache\Events\CacheHit (177μs)
      • Illuminate\Cache\Events\CacheHit (158μs)
      • Illuminate\Cache\Events\CacheHit (193μs)
      • Illuminate\Cache\Events\CacheHit (156μs)
      • Illuminate\Cache\Events\CacheHit (231μs)
      • Illuminate\Cache\Events\CacheHit (163μs)
      • creating: site.layouts.app (476μs)
      • composing: site.layouts.app (21μs)
      • creating: components.canonical (382μs)
      • composing: components.canonical (106μs)
      • creating: components.open-graph (208μs)
      • composing: components.open-graph (79μs)
      • creating: site.headers.header (309μs)
      • composing: site.headers.header (76μs)
      • Illuminate\Cache\Events\CacheHit (1.86ms)
      • creating: components.footer (96μs)
      • composing: components.footer (151μs)
      • Illuminate\Cache\Events\CacheHit (1.29ms)
      • Illuminate\Cache\Events\CacheHit (339μs)
      • Illuminate\Cache\Events\CacheHit (288μs)
      • Illuminate\Cache\Events\CacheHit (189μs)
      • Illuminate\Cache\Events\CacheHit (196μs)
      • Illuminate\Cache\Events\CacheHit (185μs)
      • Illuminate\Cache\Events\CacheHit (190μs)
      • Illuminate\Cache\Events\CacheHit (2.87ms)
      • Illuminate\Cache\Events\CacheHit (412μs)
      • Illuminate\Cache\Events\CacheHit (2.18ms)
      • Illuminate\Cache\Events\CacheHit (313μs)
      • Illuminate\Cache\Events\CacheHit (211μs)
      • Illuminate\Cache\Events\CacheHit (932μs)
      • Illuminate\Cache\Events\CacheHit (213μs)
      • creating: components.forms.contact-us (350μs)
      • composing: components.forms.contact-us (178μs)
      • creating: components.forms.get-started (188μs)
      • composing: components.forms.get-started (77μs)
      • creating: components.forms.free-tool-download (132μs)
      • composing: components.forms.free-tool-download (67μs)
      • creating: components.forms.claim-free-worksheet (2.32ms)
      • composing: components.forms.claim-free-worksheet (102μs)
      • creating: components.forms.tutor-subscription-waitlist (147μs)
      • composing: components.forms.tutor-subscription-waitlist (70μs)
      • creating: components.forms.tutor-subscription-join (134μs)
      • composing: components.forms.tutor-subscription-join (69μs)
      • creating: components.forms.tutor-support (126μs)
      • composing: components.forms.tutor-support (67μs)
      • 321 x Illuminate\Cache\Events\CacheHit (16.52%)
        92.12ms
        10 x Illuminate\Database\Events\StatementPrepared (4.16%)
        23.20ms
        10 x Illuminate\Database\Events\QueryExecuted (2.95%)
        16.46ms
        1 x Illuminate\Foundation\Events\LocaleUpdated (1.28%)
        7.13ms
        1 x creating: components.forms.claim-free-worksheet (0.42%)
        2.32ms
        1 x Illuminate\Database\Events\ConnectionEstablished (0.25%)
        1.42ms
        1 x Illuminate\Routing\Events\Routing (0.23%)
        1.28ms
        1 x Illuminate\Cache\Events\KeyWritten (0.19%)
        1.08ms
        1 x eloquent.booting: App\Models\SubjectCat (0.18%)
        981μs
        1 x creating: homework.show (0.1%)
        557μs
        1 x Illuminate\Routing\Events\RouteMatched (0.1%)
        535μs
        1 x creating: site.layouts.app (0.09%)
        476μs
        1 x creating: components.breadcrumbs (0.07%)
        388μs
        1 x creating: components.canonical (0.07%)
        382μs
        1 x creating: components.forms.contact-us (0.06%)
        350μs
        7 x eloquent.retrieved: App\Models\HomeworkLibrary\HomeworkLibrary (0.06%)
        312μs
        1 x creating: site.headers.header (0.06%)
        309μs
        1 x eloquent.booted: App\Models\HomeworkLibrary\HomeworkLibrary (0.06%)
        308μs
        1 x Illuminate\Cache\Events\CacheMissed (0.05%)
        272μs
        2 x eloquent.retrieved: App\Models\Subject (0.05%)
        270μs
        6 x eloquent.retrieved: App\Models\HomeworkLibrary\HomeworkLibraryFile (0.05%)
        268μs
        1 x eloquent.booting: App\Models\HomeworkLibrary\HomeworkLibrary (0.05%)
        254μs
        2 x eloquent.retrieved: App\Models\SubjectCat (0.04%)
        241μs
        1 x composing: homework.show (0.04%)
        233μs
        1 x creating: components.open-graph (0.04%)
        208μs
        1 x creating: components.forms.get-started (0.03%)
        188μs
        1 x composing: components.breadcrumbs (0.03%)
        185μs
        1 x composing: components.forms.contact-us (0.03%)
        178μs
        1 x eloquent.booting: App\Models\HomeworkLibrary\HomeworkLibraryFile (0.03%)
        151μs
        1 x composing: components.footer (0.03%)
        151μs
        1 x creating: components.forms.tutor-subscription-waitlist (0.03%)
        147μs
        1 x creating: components.forms.tutor-subscription-join (0.02%)
        134μs
        1 x creating: components.forms.free-tool-download (0.02%)
        132μs
        1 x creating: components.forms.tutor-support (0.02%)
        126μs
        1 x composing: components.canonical (0.02%)
        106μs
        1 x composing: components.forms.claim-free-worksheet (0.02%)
        102μs
        1 x creating: components.footer (0.02%)
        96μs
        1 x composing: components.open-graph (0.01%)
        79μs
        1 x composing: components.forms.get-started (0.01%)
        77μs
        1 x composing: site.headers.header (0.01%)
        76μs
        1 x composing: components.forms.tutor-subscription-waitlist (0.01%)
        70μs
        1 x composing: components.forms.tutor-subscription-join (0.01%)
        69μs
        1 x eloquent.booting: App\Models\Subject (0.01%)
        67μs
        1 x composing: components.forms.free-tool-download (0.01%)
        67μs
        1 x composing: components.forms.tutor-support (0.01%)
        67μs
        1 x eloquent.booted: App\Models\HomeworkLibrary\HomeworkLibraryFile (0.01%)
        60μs
        1 x eloquent.booted: App\Models\Subject (0.01%)
        52μs
        1 x eloquent.booted: App\Models\SubjectCat (0.01%)
        51μs
        1 x composing: site.layouts.app (0%)
        21μs
      14 templates were rendered
      • 1x homework.showshow.blade.phpblade
      • 1x components.breadcrumbsbreadcrumbs.blade.phpblade
      • 1x site.layouts.appapp.blade.phpblade
      • 1x components.canonicalcanonical.blade.phpblade
      • 1x components.open-graphopen-graph.blade.phpblade
      • 1x site.headers.headerheader.blade.phpblade
      • 1x components.footerfooter.blade.phpblade
      • 1x components.forms.contact-uscontact-us.blade.phpblade
      • 1x components.forms.get-startedget-started.blade.phpblade
      • 1x components.forms.free-tool-downloadfree-tool-download.blade.phpblade
      • 1x components.forms.claim-free-worksheetclaim-free-worksheet.blade.phpblade
      • 1x components.forms.tutor-subscription-waitlisttutor-subscription-waitlist.blade.phpblade
      • 1x components.forms.tutor-subscription-jointutor-subscription-join.blade.phpblade
      • 1x components.forms.tutor-supporttutor-support.blade.phpblade
      uri
      GET college-homework-library/{category}/{subject}/{id}
      middleware
      web, utm.parameters
      controller
      App\Http\Controllers\HomeworkLibraryController@show
      namespace
      where
      as
      homework.show
      file
      app/Http/Controllers/HomeworkLibraryController.php:79-176
      10 statements were executed, 4 of which were duplicates, 6 unique. Show only duplicated27.89ms
      • Connection Establishedtwenty4_siteHomeworkLibraryController.php#91
        Backtrace
        • 13. app/Http/Controllers/HomeworkLibraryController.php:91
        • 14. vendor/laravel/framework/src/Illuminate/Routing/Controller.php:54
        • 15. vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php:43
        • 16. vendor/laravel/framework/src/Illuminate/Routing/Route.php:260
        • 17. vendor/laravel/framework/src/Illuminate/Routing/Route.php:205
      • select * from `solutionslibrary` where `status` = 'published' and `price` > 0 and `solutionslibrary`.`id` = '18250' limit 1
        11.22mstwenty4_siteHomeworkLibraryController.php#97
        Bindings
        • 0: published
        • 1: 0
        • 2: 18250
        Backtrace
        • 16. app/Http/Controllers/HomeworkLibraryController.php:97
        • 17. vendor/laravel/framework/src/Illuminate/Routing/Controller.php:54
        • 18. vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php:43
        • 19. vendor/laravel/framework/src/Illuminate/Routing/Route.php:260
        • 20. vendor/laravel/framework/src/Illuminate/Routing/Route.php:205
      • select * from `subjects` where `subjects`.`id` in (258)
        1.56mstwenty4_siteHomeworkLibraryController.php#97
        Backtrace
        • 21. app/Http/Controllers/HomeworkLibraryController.php:97
        • 22. vendor/laravel/framework/src/Illuminate/Routing/Controller.php:54
        • 23. vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php:43
        • 24. vendor/laravel/framework/src/Illuminate/Routing/Route.php:260
        • 25. vendor/laravel/framework/src/Illuminate/Routing/Route.php:205
      • select * from `solutionslibrary_files` where `solutionslibrary_files`.`solutionlib_id` in (18250)
        2.36mstwenty4_siteHomeworkLibraryController.php#97
        Backtrace
        • 21. app/Http/Controllers/HomeworkLibraryController.php:97
        • 22. vendor/laravel/framework/src/Illuminate/Routing/Controller.php:54
        • 23. vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php:43
        • 24. vendor/laravel/framework/src/Illuminate/Routing/Route.php:260
        • 25. vendor/laravel/framework/src/Illuminate/Routing/Route.php:205
      • select * from `subject_cats` where `subject_cats`.`id` = 3 limit 1
        1.38mstwenty4_siteHomeworkLibrary.php#201
        Bindings
        • 0: 3
        Backtrace
        • 20. app/Models/HomeworkLibrary/HomeworkLibrary.php:201
        • 26. app/Http/Controllers/HomeworkLibraryController.php:105
        • 27. vendor/laravel/framework/src/Illuminate/Routing/Controller.php:54
        • 28. vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php:43
        • 29. vendor/laravel/framework/src/Illuminate/Routing/Route.php:260
      • select * from `solutionslibrary` where `id` <> 18250 and `subject` = 258 and `status` = 'published' and `price` > 0 order by RAND() limit 6
        4.03mstwenty4_siteHomeworkLibraryRepository.php#30
        Bindings
        • 0: 18250
        • 1: 258
        • 2: published
        • 3: 0
        Backtrace
        • 14. app/Repositories/HomeworkLibraryRepository.php:30
        • 15. vendor/laravel/framework/src/Illuminate/Cache/Repository.php:397
        • 16. vendor/laravel/framework/src/Illuminate/Cache/CacheManager.php:419
        • 18. app/Repositories/HomeworkLibraryRepository.php:39
        • 19. app/Http/Controllers/HomeworkLibraryController.php:139
      • select * from `subjects` where `subjects`.`id` in (258)
        1.89mstwenty4_siteHomeworkLibraryRepository.php#30
        Backtrace
        • 19. app/Repositories/HomeworkLibraryRepository.php:30
        • 20. vendor/laravel/framework/src/Illuminate/Cache/Repository.php:397
        • 21. vendor/laravel/framework/src/Illuminate/Cache/CacheManager.php:419
        • 23. app/Repositories/HomeworkLibraryRepository.php:39
        • 24. app/Http/Controllers/HomeworkLibraryController.php:139
      • select * from `solutionslibrary_files` where `solutionslibrary_files`.`solutionlib_id` = 18250 and `solutionslibrary_files`.`solutionlib_id` is not null and `publish` = 'question' order by `order` asc, `id` asc
        1.32mstwenty4_siteHomeworkLibrary.php#260
        Bindings
        • 0: 18250
        • 1: question
        Backtrace
        • 15. app/Models/HomeworkLibrary/HomeworkLibrary.php:260
        • 16. app/Transformers/HomeworkLibrary/HomeworkLibraryTransformer.php:58
        • 19. vendor/league/fractal/src/TransformerAbstract.php:128
        • 20. vendor/league/fractal/src/TransformerAbstract.php:107
        • 21. vendor/league/fractal/src/Scope.php:383
      • select * from `solutionslibrary_files` where `solutionslibrary_files`.`solutionlib_id` = 18250 and `solutionslibrary_files`.`solutionlib_id` is not null and `publish` = 'teaser' order by `order` asc, `id` asc
        1.43mstwenty4_siteHomeworkLibrary.php#260
        Bindings
        • 0: 18250
        • 1: teaser
        Backtrace
        • 15. app/Models/HomeworkLibrary/HomeworkLibrary.php:260
        • 16. app/Transformers/HomeworkLibrary/HomeworkLibraryTransformer.php:69
        • 19. vendor/league/fractal/src/TransformerAbstract.php:128
        • 20. vendor/league/fractal/src/TransformerAbstract.php:107
        • 21. vendor/league/fractal/src/Scope.php:383
      • select * from `solutionslibrary_files` where `solutionslibrary_files`.`solutionlib_id` = 18250 and `solutionslibrary_files`.`solutionlib_id` is not null and `publish` = 'solution' order by `order` asc, `id` asc
        1.14mstwenty4_siteHomeworkLibrary.php#260
        Bindings
        • 0: 18250
        • 1: solution
        Backtrace
        • 15. app/Models/HomeworkLibrary/HomeworkLibrary.php:260
        • 16. app/Transformers/HomeworkLibrary/HomeworkLibraryTransformer.php:80
        • 19. vendor/league/fractal/src/TransformerAbstract.php:128
        • 20. vendor/league/fractal/src/TransformerAbstract.php:107
        • 21. vendor/league/fractal/src/Scope.php:383
      • select * from `subject_cats` where `subject_cats`.`id` = 3 limit 1
        1.56mstwenty4_siteHomeworkLibrary.php#201
        Bindings
        • 0: 3
        Backtrace
        • 20. app/Models/HomeworkLibrary/HomeworkLibrary.php:201
        • 32. vendor/laravel/framework/src/Illuminate/Filesystem/Filesystem.php:110
        • 33. vendor/laravel/framework/src/Illuminate/View/Engines/PhpEngine.php:58
        • 34. vendor/livewire/livewire/src/ComponentConcerns/RendersLivewireComponents.php:69
        • 35. vendor/laravel/framework/src/Illuminate/View/Engines/CompilerEngine.php:70
      App\Models\HomeworkLibrary\HomeworkLibrary
      7HomeworkLibrary.php
      App\Models\HomeworkLibrary\HomeworkLibraryFile
      6HomeworkLibraryFile.php
      App\Models\Subject
      2Subject.php
      App\Models\SubjectCat
      2SubjectCat.php
          _token
          YrQLo3nipMLuRZnQVUyc1A76YQn7LNYhvvjI6M8O
          utm_source
          direct
          redirectUrl
          /college-homework-library/Computer-Science/Operating-Systems/18250
          _previous
          array:1 [ "url" => "https://staging.dev.24houranswers.com/college-homework-library/Computer-Scienc...
          _flash
          array:2 [ "old" => [] "new" => [] ]
          PHPDEBUGBAR_STACK_DATA
          []
          path_info
          /college-homework-library/Computer-Science/Operating-Systems/18250
          status_code
          200
          
          status_text
          OK
          format
          html
          content_type
          text/html; charset=UTF-8
          request_query
          []
          
          request_request
          []
          
          request_headers
          0 of 0
          array:21 [ "priority" => array:1 [ 0 => "u=0, i" ] "accept-encoding" => array:1 [ 0 => "gzip, deflate, br, zstd" ] "sec-fetch-dest" => array:1 [ 0 => "document" ] "sec-fetch-user" => array:1 [ 0 => "?1" ] "sec-fetch-mode" => array:1 [ 0 => "navigate" ] "sec-fetch-site" => array:1 [ 0 => "none" ] "accept" => array:1 [ 0 => "text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.7" ] "user-agent" => array:1 [ 0 => "Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)" ] "upgrade-insecure-requests" => array:1 [ 0 => "1" ] "sec-ch-ua-platform" => array:1 [ 0 => ""Windows"" ] "sec-ch-ua-mobile" => array:1 [ 0 => "?0" ] "sec-ch-ua" => array:1 [ 0 => ""HeadlessChrome";v="129", "Not=A?Brand";v="8", "Chromium";v="129"" ] "cache-control" => array:1 [ 0 => "no-cache" ] "pragma" => array:1 [ 0 => "no-cache" ] "x-amzn-trace-id" => array:1 [ 0 => "Root=1-680d312e-779921e301a749dc4368c585" ] "host" => array:1 [ 0 => "staging.dev.24houranswers.com" ] "x-forwarded-port" => array:1 [ 0 => "443" ] "x-forwarded-proto" => array:1 [ 0 => "https" ] "x-forwarded-for" => array:1 [ 0 => "3.143.254.10" ] "content-length" => array:1 [ 0 => "" ] "content-type" => array:1 [ 0 => "" ] ]
          request_cookies
          []
          
          response_headers
          0 of 0
          array:5 [ "content-type" => array:1 [ 0 => "text/html; charset=UTF-8" ] "cache-control" => array:1 [ 0 => "no-cache, private" ] "date" => array:1 [ 0 => "Sat, 26 Apr 2025 19:17:02 GMT" ] "set-cookie" => array:2 [ 0 => "XSRF-TOKEN=eyJpdiI6InFuNDU4Q0h2NGhCQlFMZlVBZDVnOWc9PSIsInZhbHVlIjoiTDhMNmJ6RkFjRnRtNWpkcVhydGNLUVJCbXpxVHVScjhsNnlXd2RHL3p1Tm90d1FvcnpWZHA1RXRwSnpJNFpPOTdIMkNIUnlpdDZxSVZGOFdkQVp0ZHNySWFKczRBbGNQK055ZFRiV3FFWEZrQjVVMUxtVy8wbjBPeUswQStzSDQiLCJtYWMiOiIwN2ExMmNiMTQ1ZTE4Y2FmNGQ1OTk5YWNiZDI4ZDg5MmQ1NjYzMmRkMGUyZTM0ZTgxNmU0NzEzOTE4N2E1YjRjIiwidGFnIjoiIn0%3D; expires=Sat, 26 Apr 2025 21:17:02 GMT; Max-Age=7200; path=/; domain=.24houranswers.com; samesite=laxXSRF-TOKEN=eyJpdiI6InFuNDU4Q0h2NGhCQlFMZlVBZDVnOWc9PSIsInZhbHVlIjoiTDhMNmJ6RkFjRnRtNWpkcVhydGNLUVJCbXpxVHVScjhsNnlXd2RHL3p1Tm90d1FvcnpWZHA1RXRwSnpJNFpPOTdIMkNIU" 1 => "24houranswers_session=eyJpdiI6ImpxdWd2bDZkR05Ga2IxTlI5bUk1c1E9PSIsInZhbHVlIjoiTmVPbmNvWkJtSXhndUgveTRGb1c0NXJiS3lLT3dXSjZOMk5OcTlTdUludmVGV1JWR0o5V1FLSFVoYmMrV2M2dExNZlhtaU9VWHg2SUo2MXdmWGl6SjdacTZnS09VTGs3Q3ZUSXFNY2pWcEo5Q3RHUHppR3p3UC9Qb25ndC9EVnAiLCJtYWMiOiJmNmU3ZTg5YjM5ZjgzOWE5ZTgyZmQ2NDlkZmUxMDRjNmNkMDg1ZDgyZDczNWI0YzZhNzFjYTIyYWRmN2RhZmYxIiwidGFnIjoiIn0%3D; expires=Sat, 26 Apr 2025 21:17:02 GMT; Max-Age=7200; path=/; domain=.24houranswers.com; httponly; samesite=lax24houranswers_session=eyJpdiI6ImpxdWd2bDZkR05Ga2IxTlI5bUk1c1E9PSIsInZhbHVlIjoiTmVPbmNvWkJtSXhndUgveTRGb1c0NXJiS3lLT3dXSjZOMk5OcTlTdUludmVGV1JWR0o5V1FLSFVoYmMrV2" ] "Set-Cookie" => array:2 [ 0 => "XSRF-TOKEN=eyJpdiI6InFuNDU4Q0h2NGhCQlFMZlVBZDVnOWc9PSIsInZhbHVlIjoiTDhMNmJ6RkFjRnRtNWpkcVhydGNLUVJCbXpxVHVScjhsNnlXd2RHL3p1Tm90d1FvcnpWZHA1RXRwSnpJNFpPOTdIMkNIUnlpdDZxSVZGOFdkQVp0ZHNySWFKczRBbGNQK055ZFRiV3FFWEZrQjVVMUxtVy8wbjBPeUswQStzSDQiLCJtYWMiOiIwN2ExMmNiMTQ1ZTE4Y2FmNGQ1OTk5YWNiZDI4ZDg5MmQ1NjYzMmRkMGUyZTM0ZTgxNmU0NzEzOTE4N2E1YjRjIiwidGFnIjoiIn0%3D; expires=Sat, 26-Apr-2025 21:17:02 GMT; domain=.24houranswers.com; path=/XSRF-TOKEN=eyJpdiI6InFuNDU4Q0h2NGhCQlFMZlVBZDVnOWc9PSIsInZhbHVlIjoiTDhMNmJ6RkFjRnRtNWpkcVhydGNLUVJCbXpxVHVScjhsNnlXd2RHL3p1Tm90d1FvcnpWZHA1RXRwSnpJNFpPOTdIMkNIU" 1 => "24houranswers_session=eyJpdiI6ImpxdWd2bDZkR05Ga2IxTlI5bUk1c1E9PSIsInZhbHVlIjoiTmVPbmNvWkJtSXhndUgveTRGb1c0NXJiS3lLT3dXSjZOMk5OcTlTdUludmVGV1JWR0o5V1FLSFVoYmMrV2M2dExNZlhtaU9VWHg2SUo2MXdmWGl6SjdacTZnS09VTGs3Q3ZUSXFNY2pWcEo5Q3RHUHppR3p3UC9Qb25ndC9EVnAiLCJtYWMiOiJmNmU3ZTg5YjM5ZjgzOWE5ZTgyZmQ2NDlkZmUxMDRjNmNkMDg1ZDgyZDczNWI0YzZhNzFjYTIyYWRmN2RhZmYxIiwidGFnIjoiIn0%3D; expires=Sat, 26-Apr-2025 21:17:02 GMT; domain=.24houranswers.com; path=/; httponly24houranswers_session=eyJpdiI6ImpxdWd2bDZkR05Ga2IxTlI5bUk1c1E9PSIsInZhbHVlIjoiTmVPbmNvWkJtSXhndUgveTRGb1c0NXJiS3lLT3dXSjZOMk5OcTlTdUludmVGV1JWR0o5V1FLSFVoYmMrV2" ] ]
          session_attributes
          0 of 0
          array:6 [ "_token" => "YrQLo3nipMLuRZnQVUyc1A76YQn7LNYhvvjI6M8O" "utm_source" => "direct" "redirectUrl" => "/college-homework-library/Computer-Science/Operating-Systems/18250" "_previous" => array:1 [ "url" => "https://staging.dev.24houranswers.com/college-homework-library/Computer-Science/Operating-Systems/18250" ] "_flash" => array:2 [ "old" => [] "new" => [] ] "PHPDEBUGBAR_STACK_DATA" => [] ]