I am currently working on an assignment to simulate how an operating system handles deadlocks.
Anyway, I am having difficulties creating a Matrix -- Does anyone have a preference that they use...
Type: Posts; User: Alexisa
I am currently working on an assignment to simulate how an operating system handles deadlocks.
Anyway, I am having difficulties creating a Matrix -- Does anyone have a preference that they use...
Well, I won't do your homework for you but I'll give you an idea where you could start.
I would start by making functions for the strings you read in... like a function for add(), sum(), etc
...
I'm a little confused by what your saying, but I am going to assume, you want to assign MY_TYPE a values through my_function.
Since you pass my_function a pointer to MY_TYPE a, it should change...
A Process is a program in execution.
If a process has a single thread, it is only able to preform one task at a time. If the process has multiple threads, it would be able to preform more then one...
I need to write a program, that begins with one process and forks to two (I understand how this works now), but I am still really confused with how you would implement a pipe to transfer messages...
Thanks, that was a good start ^^
You wouldn't happen to know anymore though? *blush*
Especially related to Pipes
Does anyone know any good webpages or information that can help me learn pipes and forks? I've tried searching google and everything I read... I must admit has made me utterly confused.
CPU Bound jobs are jobs that spend most of their time using the CPU, although they do preform I/O operations as well.
I/O Bound jobs are jobs that spend most of their time doing I/O, although they...
I'm still relatively new to C programming, although I completed a university course in programming with C. ^^; Haven't had much practice since then. :p
Anyway, my question is, is it...
Unfortunatly, I can't do that because I log on the University's unix server and we use the gcc compiler =/
If anyone is curious.... I solved the problem. ^^;
CPU* newCPU(CPU *c)
{
c = (CPU*)malloc(sizeof(int[10]));
c->Running = newStack(c->Running);
c->Ready = newQueue(c->Ready);
Thanks for your help ^^
But, the problems you mentioned are ones that I was already aware of... you see, I had the changes implemented in my orginal code (the p = malloc(sizeof(Queue)); )
I...
Thanks for your help in advance ^^
Ok, my problem is that every time I run the program I get a Segmentation Fault... I think it's because the memory isn't allocating properly, could someone please...
I'm not quite sure if this is what you are looking for, but the first one can be -really- amusing and the second one is also very helpfull.
How to write Unmaintainable Code:...
Hello :)
I would like to try and make a form on a webpage, that the data entered gets added to a linked list using C or Java (I know a little of both languages so it doesn't really matter which...