Re: multithreading in an application



I hope the following code can help u.

FUNRESULT OnButtonClick(PARAMS)
{
	if (fork()==0)
	{
		execl(your first application....);
	} 
	else if (fork()==0)
	{
		execl(your first application....);
	}
	else .......
  
}

--------------- 2001-11-07 You wrote---------------

>hi all,
>       I am working on an application in which I need
>to apply multithreading.In application requirement is
>that I want to open multiple applications on button
>click.But problem is only one application is opening
>on button click and after closing that application
>another application is opened.Can anybody Please help
>me in dealing with this problem.
>
>        Thanks.
>                            Neeraj
>
>__________________________________________________
>Do You Yahoo!?
>Find a job, post your resume.
>http://careers.yahoo.com
>_______________________________________________
>gtk-list mailing list
>gtk-list gnome org
>http://mail.gnome.org/mailman/listinfo/gtk-list

-----------------------------------------------------
			



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]