Questions tagged [minix]

is a Unix-like computer operating system based on a microkernel architecture created by Andrew S. Tanenbaum for educational purposes.

MINIX is a Unix-like computer operating system based on a microkernel architecture created by Andrew S. Tanenbaum for educational purposes; MINIX also inspired the creation of the Linux kernel.

MINIX (from "mini-Unix") was first released in 1987, with its complete source code made available to universities for study in courses and research. It has been free and open source software since it was re-licensed under the BSD license in April 2000.

Sizeable subset of Minix source code is also published in the book by its creator Design and Implementation of Operating Systems.

230 questions
2
votes
0 answers

Minix Process Communication (IPC)

I am aiming at getting the last x, say 100, send messages with the rp id (running process id) and the dest. For that purpose there are the functions sys_call and min_send. The parameters of the mind_send are exactly what I try to get. How can I…
Dimitar
  • 4,402
  • 4
  • 31
  • 47
2
votes
0 answers

changing in struct proc cause minix freeze

in minix 3.1.2a ,i added an attribute "hash" at the end of the struct proc struct proc{ . . int p_endpoint; /* endpoint number, generation-aware */ #if DEBUG_SCHED_CHECK int p_ready, p_found; #endif *int hash;* } then ,in main.c in main()…
user2963216
  • 391
  • 2
  • 4
  • 11
2
votes
0 answers

Can't start SMP AP processors in MINIX: startup_IPI restarts and hangs

i'm running minix 3.1.2a ,my goal is to start APs procesoors other than the BSP ,i followed the universal startup algorithm : BSP sends AP an INIT IPI BSP DELAYs (10mSec) BSP sends AP a STARTUP IPI BSP DELAYs (200μSEC) BSP sends AP a STARTUP…
user2963216
  • 391
  • 2
  • 4
  • 11
2
votes
2 answers

System call execve does not return with ls function

I am asked to implement my own shell for an Operating System class. My shell runs every commands fine, except ls that won't return on execve, which is weird because cd, cp, mv, and all the others main commands are returning okay. ls is still…
JahMyst
  • 1,616
  • 3
  • 20
  • 39
2
votes
1 answer

Why can superusers run more simultaneous processes than unprivileged users?

(Note: The program mentioned was written for a class assignment, but this question is not part of the assignment; it is for my own curiosity and I cannot find an answer elsewhere.) For a class assignment, I needed to write a program to determine the…
vaindil
  • 7,536
  • 21
  • 68
  • 127
2
votes
0 answers

Running minix 3 on VBox failed to load module

I'm having problem with running minix_R3.2.1-972156d on Oracle VBox 4.3 on Windows 7. "Warning 1 module failed to load" and it's probably the 13th one. I had this problem once before on Ubuntu, and running Minix from bash using VBoxSDL --startvm…
crossy
  • 21
  • 2
2
votes
1 answer

MINIX 2 - syscall to kernel

I want to make 2 syscalls to kernel (getlot and setlot). They have to read and set some value in struct proc, which is in kernel. What is the problem? What is missing? In /usr/include/minix/callnr.h I increased NCALLS and add 2 define #define…
2
votes
1 answer

Process Management Data Structures and Process Control

This program should use fork() to create processes, store the PID of the child process into a singly linked list, after fork fails kill the processes one at a time, then free the nodes in the linked list, and finally print out how many processes…
mimiG
  • 21
  • 1
2
votes
2 answers

Minix pkgin error

Hi I am working on Minix. I installed it on VirtualBox. Now I want to install to Minix some programs like vim, bash etc. However I've gor an error like below: pkgin: Can't open database /usr/var/db/pkgin/pkgin.db: unable to open database file: No…
user2870
  • 477
  • 7
  • 18
2
votes
2 answers

How to install vim into Minix3?

I should install vim into Minix. But I couldnt find any useful information on the net. I've just installed Minix on VirtualBox. So I am a beginner on Minix. Do you have an idea how to install it?
user2870
  • 477
  • 7
  • 18
2
votes
0 answers

Count system calls for processes in Minix 3 and print processes/#of sys calls with F8

I need a way to count how many system calls every process uses (user, system, etc) and then print the results for all processes with F8. I'm guessing that I need to change proc.c and proc.h to add a process field and change keyboard.c to make the F8…
2
votes
5 answers

Does Fork() in UNIX create processes which run in unison or sequentially?

When using a fork() function in a program which is running in a Unix like operating system (i.e MINIX 3) does it create a number of separate processes which are handled independently and can therefore finish ahead of each other (which is actually…
jwv
  • 475
  • 4
  • 21
2
votes
0 answers

Need "ls -s" to show correct number of blocks in MINIX

I'm taking a course in OS involving minix and I would like some advice. I'm trying to figure out how to modify the minix so that it's ls -s will do the same thing as in linux. I understand that although minix and linux ls -s are similar, when a…
solaris
  • 33
  • 3
2
votes
2 answers

Minix3 process table (proc.h)

Anyone know why certain fields in proc.h in Minix are char, when I thought they'd be int? 37 char p_ticks_left; /* number of scheduling ticks left */ 38 char p_quantum_size; /* quantum size in ticks */ So, if we want to…
Mark Kennedy
  • 1,751
  • 6
  • 30
  • 53
1
vote
1 answer

How to customize proc.c in minix for implementing FCFS algorithm?

I want to customize the code of minix file /usr/src/kernel/proc.c for implementing the FCFS algorithm but I am not getting any idea or clue. I have been said that, the current algorithm works with some priority level and all the processes at first…
Tanveer Ahmed
  • 35
  • 1
  • 8