Programming :: Difference Between Init And Main Function In A Process

Jul 12, 2010

I have a project in which many processes run. p1,p2,p3.

->There are some .so files are included in some process when needed example ppp.so in process p1 (when ppp is needed and will go like a plugin) but it has a init () function how a process includes a init() function ?

->process p1 has main function i.e main()

->so evry process has main() right ?

what is the difference between init () and main () functoins. where is init () used and how many init() a process van have ?

View 3 Replies


ADVERTISEMENT

Programming :: Difference Between Init.rc Process And Normal Process?

Mar 31, 2011

Is there any difference in cpu usage for process in init.rc(runs automatic when boot is happened) and manually running process. Will these both have same priority by default...?

View 1 Replies View Related

Ubuntu :: Init: Ureadahead Main Process 388 Terminated With Status 5

Nov 7, 2010

I have Ubuntu 10.10 installed. When I boot, this error message appeared "init: ureadahead main process 388 terminated with status 5" After that, another error message appear saying " *ERROR* render ring head not reset to zero"

View 2 Replies View Related

Ubuntu :: Init: Ureadahead Main Process (423) Terminated With Status 5?

Dec 1, 2010

Code: init: ureadahead main process (423) terminated with status 5 Ubuntu 10.10 lorentz tty1

lorentz login: The first line of the above shows up during boot before the display goes graphical. I can see it again (all of the above) when I Ctrl+Alt+F1 to access the first text console. Anyone know what is causing this, what problems can happen as a result, and what should be done about it? I moved from 9.10 on one machine to 10.10 on a new machine, so I don't know if it's a hardware problem or software. I am running 64-bit. I am not really seeing any problems happening besides the few scattered application and GUI glitches that are common with a new/migrated setup.

View 2 Replies View Related

Ubuntu :: Init: Hostname Main Process (#) Terminated With Status 1?

Apr 20, 2011

I keep getting this message as the first thing I see when I boot up. Afterwards, it displays the ubuntu logo and dots under it and then the screen blacks out, but the display lights act like its OK (wireless ETC). should I use a boot CD or something? The hard drive is fine and this happened after the computer blacked out during updates. i scanned the hard drive and its OK, according to the little scan thing you can do before booting up. I have a Compaq Presario V200. For specs, thats all I know.

View 1 Replies View Related

Ubuntu :: Init: Ureadahead-other Main Process (814) Terminated With Status 4

May 20, 2011

I found below message in my boot.log. init: ureadahead-other main process (814) terminated with status 4

View 4 Replies View Related

Ubuntu Installation :: Init: Mountall Main Fsck Process (574) Terminated?

Jan 23, 2010

I have upgraded my ubuntu to the latest version a few days ago. Prior to the update I played a little with my partitions (transferred about 15GB from my windows partition to ubuntu partition).Up until yesterday everything worked. For some reason ubuntu will not load up now. After selecting ubuntu on grub i get the following msg: init: mountall main fsck process (574) terminated with status 3 mount of filesystem failed one or more of the mounts

View 3 Replies View Related

Ubuntu :: Unable To Boot - Showing Init Rcefault(2111) Main Process Terminated

Feb 13, 2010

Am using ubuntu for a year Now am getting some prob am unable to boot it is showing init rcefault(2111) main process terminated

View 1 Replies View Related

Ubuntu Installation :: INIT: Failed To Spawn Ureadahead Main Process. No Such File Or Directory

Feb 3, 2011

I have an Acer 9410Z laptop that I believe is running the Maverick Meerkat version of Ubuntu Studio. I just did an upgrade using Synaptic. I get to GRUB, but When I try to boot 2.6.35-22 (or the recovery mode or a real time kernel I had installed )I get the error:

INIT: Failed to spawn ureadahead main process. No such file or directory I then get the Ubuntu Studio splash screen for 2 seconds but then instead of a normal boot I end up in the terminal.

View 3 Replies View Related

Ubuntu :: Unable To Boot: Init: Plymouth Main Process (57) Killed By SEGV Signal

May 2, 2011

I upgraded from Ubuntu 10.0.4 to 11.0.4 on a Dell Optiplex. Now, when I boot, I am given the option to boot into different kernels. I select "ubuntu, with Linux 2.6.38-8-generic", which results in a black screen that reads

Code:

init: plymouth main process (58) killed by SEGV signal and that's where it hangs. Pressing ENTER or hitting Esc does nothing. What steps can I take to recover my machine and all the files I used to have on it?

View 2 Replies View Related

Ubuntu :: Init: Failed To Spawn Network-manager Main Process: Unable To Execute: No Such File Or Directory

May 27, 2010

I just updated from 9.04 to 9.10 (it's a long story, and I still can't go beyond 2.30).The update got rid of WICD, which is what I used and installed network-manager. Network-manager was not working at all, so I uninstalled it again and installed WICD. I could connect perfectly and had no problems.However, now the computer hangs during boot, saying that init can't start network-manager. I assume that something went wrong during the uninstalling process, since it wasn't updated.

This is the message: init: Failed to spawn network-manager main process: unable to execute: No such file or directory.

So how do I update it or manually change it so it stops requesting network-manager?

View 3 Replies View Related

Software :: Init: Failed To Spawn Readahead-collector Main Process: Unable To Execute: No Such File Or Directory

Apr 6, 2011

My machine is dual booted with Fedora 14 and RHEL 6. (I have only installed Red Hat because I am studying for RHCE). Just now I tried to install the Banshee player on my Red Hat OS. I ran various scripts inside the directory to see what really happens and after I ran the 'Makefile.in' file my terminal froze. It displayed '/bin/ not found'Then i restarted my computer and I got the following messages:

init: Failed to spawn readahead-collector main process: unable to execute: no such file or directory
init: Failed to spawn rcS main process: unable to execute: No such file or directory
init: Failed to spawn readahead main process: unable to execute: No such file or directory

[code].....

I tried run level 1 and run level 3 but I get the same error messages.

PS: My Fedora 14 installation is working fine.

View 1 Replies View Related

Ubuntu :: Doesn't Booting Up - Black Screen Appears With The Text: Init: Ureadahead Main Process (306) Terminated With Status 5

Sep 11, 2010

I installed Lucid Lynx on my laptop a couple of months ago and for the most part everything was working fine. However, just recently the computer doesn't seem to be booting up at all. I start up the machine and then a black screen appears with the text: init: ureadahead main process (306) terminated with status 5 the (#) is different in some boot-ups

And the computer just hangs there. typing anything doesn't seem to help at all. I press enter and a new line just appears. I've left it there for hours and still no login screen.

View 9 Replies View Related

Programming :: Structure Of The Main Function In C?

Sep 22, 2010

I have started learning C and am following Ivor Horton's "Beginning C - From Novice to Professional". I've noticed that in the book the structure of the main function is:

int main (void) however on the internet I found a lot of cases: void main (void)Which one is preferred and why?

View 5 Replies View Related

Programming :: Use Gtk_window_set_gravity Function To Init Window Location On Screen?

Oct 18, 2010

I use gtk_window_set_gravity function to init window location on screen. I use different parameter value in Gravity,window location always at top left of screen.I use ubuntu 10.04. Code by follow:

GtkWidget * window, *label;
gtk_init(p_argc, p_argv);
window = gtk_window_new(GTK_WINDOW_TOPLEVEL);

[code]....

View 2 Replies View Related

Programming :: Access Main Program Function From Library?

Mar 10, 2010

it possible to access main program function from dynamicallyinked library in c language?For example:main.c:

Code:
#include<stdio.h>
void func()

[code]...

View 2 Replies View Related

Programming :: Real Life Example Of Running Main Function Infintely?

Jun 18, 2011

This is not a Linux specific question.Can someone over here give me an example where I have to run the main function infinitely?

View 4 Replies View Related

Programming :: Undefined Reference To 'main' Error In Crt1.o Function _start

Apr 13, 2011

I've having problems with my Makefile.

I'm trying to create a program from 2 files - main.cpp that contains the main function, and modules.c that contains the definitions of the functions that are called in main(). modules.c only contain function definitions, no main function.

My Makefile is as follows:

Code:

I have included "modules.h", which contains all the function declarations, in my main.cpp.

When I try to make using this Makefile, I get the error

Code:

If I switch the order of modules.o and main.o in my $(TARGET) line, then I get errors that say "undefined reference to" the functions I have defined in modules.c, in main.cpp.

View 4 Replies View Related

Programming :: Calculate The Minutes Difference Between Two Dates Using The Function Mktime() On C++?

Jul 28, 2010

I'm trying to calculate the minutes difference between two dates using the function mktime() on c++. The dates will be passed to me as struct tm, and I will use this function many many times. The example below shows what I wanna do:

Code:

int main(int argc, char** argv) {
while (1) {
tm date2;
tm date1;

[code]...

I read the mktime() description on c++ reference, searched google... but there is no light

View 4 Replies View Related

Programming :: Bash: Functional Difference Between Process Substitution And Here String With $( )

Mar 14, 2010

Further to solved LQ thread Bash: how to populate a list of arbitrarily named files?, what is the functional difference between feeding a loop with process substitution and feeding it with a here string with embedded command substitution? ABSG pages: process substitution, here string and command substitution. This works

Code:

while IFS= read -r -d '' file
do
files+=("$file")
done < <(find $dir -type f -print0)

[code]....

View 2 Replies View Related

Programming :: Real Difference Between System Calls And Normal Function Calls?

Oct 26, 2010

What is the real difference between system calls and normal function calls. Ultimately function calls too would be passed to kernel for some or the other work.

View 7 Replies View Related

Fedora :: Difference Between Init And Telinit

Aug 11, 2010

difference between init and telinit?

View 2 Replies View Related

General :: Difference Between StartX And Init 5?

Aug 11, 2011

When I run the command startx it launches me immediately into Gnome without having to login and if I attempt to go back to the command line interface by typing in the comamnd init 3 in the x-terminal it does nothing. If I attempt to hit CTRL-ALT-Backspace it does nothing however if I were to run init 5 it launches me into the Gnome Display Manager and expects me to login and if I run init 3 in the x-terminal it shutdowns the x-server and returns me to the command line interface.

View 3 Replies View Related

General :: Difference Between Init 0 And Shutdown -h Now?

Mar 28, 2010

see if there are differences between init 0 and shutdown -h now?

View 3 Replies View Related

Programming :: How Can A Friend Function Access A Public Function From A Base Class

Nov 16, 2010

Code:
#include <iostream>
using namespace std;

[code]...

View 1 Replies View Related

Programming :: Passing Data From Interrupt Handler Function To Tasklet Function?

May 18, 2010

I am doing some Linux kernel programming for my research project. I need to record the timestamp (by using cpuid and rdtsc) when an interrupt handler (top half) is first invoked. Due to the time critical nature of the problem itself, I have to do the timestamping inside the interrupt handler itself (the first operation when the handler is called). However, I understand that tasks that are not so time critical should be deferred to a tasklet function (bottom half) for processing because other interrupts are disabled in a (top-half) interrupt handler. I am currently out of idea on how I can pass the timestamp information that I have obtained in the interrupt handler to the corresponding tasklet function.

View 2 Replies View Related

Programming :: Init Scripts In /etc/init.d?

Sep 17, 2010

I have written an init script and placed it in /etc/init.d/ directory.What I would like to know is, will the script run automatically or we need to install the script using "install_initd" command.If I have to invoke this command manullay, what will be the best place to do this ? Can I add this to "/etc/init.d/rcS" file

View 6 Replies View Related

Debian :: Loading A Module From The Init Process?

Dec 6, 2010

recently I've updated my kernel, i had to reconfigure some stuff, in particular, the b43 module is not loading at init process, my question is: what command should I use to load it from the init? or what file should I hagve to edit?

View 1 Replies View Related

General :: Init.d Process Does Not Return To Prompt?

Jul 9, 2010

I have a script in /etc/rc.d/init.d named foo. I want to start/stop/restart my process as follows:$ foo start But I do not see the [OK] message once it starts. There is no shell prompt returned either. It seems that my own process is the problem. The executable that foo calls is built from this sample code:

int main()
{
do {
printf("Hello world
");
sleep(1);
} while (1);
}

Do I have to return some kind of signal handle for this to work?

View 6 Replies View Related

General :: Init : No More Process Left In Runlevel

Jul 5, 2011

I am using suse 10.3 and my machine is giving this error.

inittab file is ok
no partition is 100% used.
reinstall sysvinit package

View 3 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved