[<<] [<] Page 1 of 2 [>] [>>] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Subject:
link app into server
From: Christoph Kling ####@####.#### Date: 12 Oct 2002 09:35:38 -0000 Message-Id: <3DA7ECF3.5000605@ntb.ch> Hi How can I link my own application into the server ? Regards Christoph Kling -- It's entirely untested, but it looks good and compiles. Ship it! Linus Torvalds | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Subject:
Re: [nanogui] link app into server
From: "Greg Haerr" ####@####.#### Date: 12 Oct 2002 18:32:46 -0000 Message-Id: <004a01c2721c$f2536e80$3aba46a6@xmission.com> : How can I link my own application into the server ? Setting LINK_APP_INTO_SERVER=Y in the config file does this for the demo apps. You'll have to build your own makefile for your application, unless you stick it in demos/nanox. Regards, Greg : : Regards : : Christoph Kling : : -- : It's entirely untested, but it looks good : and compiles. Ship it! : : Linus Torvalds : : : : --------------------------------------------------------------------- : To unsubscribe, e-mail: ####@####.#### : For additional commands, e-mail: ####@####.#### : | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Subject:
link app into server
From: DQ ####@####.#### Date: 28 Mar 2006 03:01:59 +0100 Message-Id: <20060328015937.29929.qmail@web15006.mail.cnb.yahoo.com> hi: If I link app into server, whether the window manage(nanowm or other) is invalid? best regards dq --------------------------------- 雅虎1G免费邮箱百分百防垃圾信 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Subject:
Re: [nanogui] link app into server
From: "Greg Haerr" ####@####.#### Date: 31 Mar 2006 08:47:46 +0100 Message-Id: <12d901c65496$ffb35c10$6401a8c0@winXP> : If I link app into server, whether the window manage(nanowm or other) is invalid? Unfortunately, linking app into server and also including the window manager is not currently supported. This shouldn't be a big problem, but you'd need to write some thread code to allow both apps to run within your single application. Regards, Greg | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Subject:
LINK APP INTO SERVER
From: "Robbie" ####@####.#### Date: 10 May 2006 21:45:56 +0100 Message-Id: <20060510204601.7DC3F8B4DC@xprdmxin.myway.com> Hi All, I've been trying to figure out how to use nanox with the option LINK_APP_INTO_SERVER = y. I notice there is no nanox server app, so where do I start from? Could someone tell me how this is used and how to get started? Much thanks. _______________________________________________ Join Excite! - http://www.excite.com The most personalized portal on the Web! | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Subject:
RE: [nanogui] LINK APP INTO SERVER
From: "Robbie" ####@####.#### Date: 10 May 2006 22:56:06 +0100 Message-Id: <20060510215604.ED4A77E416@xprdmxin.myway.com> > -----Original Message----- > From: ####@####.#### > Sent: Wed, 10 May 2006 16:46:01 -0400 (EDT) > To: ####@####.#### > Subject: [nanogui] LINK APP INTO SERVER > > > Hi All, > > I've been trying to figure out how to use nanox with the option > LINK_APP_INTO_SERVER = y. > > I notice there is no nanox server app, so where do I start from? > > Could someone tell me how this is used and how to get started? > > I would like to know the answer to this question, however let me add a description of a problem I'm having so you can get a wider scope. First, I ran two threads created from the main program prior to entering the event loop. I've been observing considerible delay and investigated that the two threads are running as expected, but the evant loop is running consideraply slower, someting in the order of a few seconds to minutes. This is quite unusual considering I've changed the scheduler to SCHED_RR and all threads have the same priority. I later add another thread with the event loop and that did the same thing. What could be the cause of this? Any suggestions anyone? _______________________________________________ Join Excite! - http://www.excite.com The most personalized portal on the Web! | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Subject:
RE: [nanogui] LINK APP INTO SERVER
From: "Martin Kajdas" ####@####.#### Date: 11 May 2006 16:11:46 +0100 Message-Id: <CF2BB830A62F914F848E5AD5FFF57AC2291511@mkmail.MKPROD.COM> -----Original Message----- From: Robbie ####@####.#### Sent: Wednesday, May 10, 2006 2:56 PM To: ####@####.#### Subject: RE: [nanogui] LINK APP INTO SERVER Importance: High Seems that your two questions are not related: 1. How to link app to server? 2. Why the event loop is slow? In both cases you must be doing something wrong. The first one is a matter of setting up the linking process properly and the result application has a nanox server linked with it so it can run by itself (without starting a nanox server first). In the second case, it would be nice to see the source code because the problem is expected if you coded something wrong in you threads. You somehow must be preventing the event loop from running. Martin > -----Original Message----- > From: ####@####.#### > Sent: Wed, 10 May 2006 16:46:01 -0400 (EDT) > To: ####@####.#### > Subject: [nanogui] LINK APP INTO SERVER > > > Hi All, > > I've been trying to figure out how to use nanox with the option > LINK_APP_INTO_SERVER = y. > > I notice there is no nanox server app, so where do I start from? > > Could someone tell me how this is used and how to get started? > > I would like to know the answer to this question, however let me add a description of a problem I'm having so you can get a wider scope. First, I ran two threads created from the main program prior to entering the event loop. I've been observing considerible delay and investigated that the two threads are running as expected, but the evant loop is running consideraply slower, someting in the order of a few seconds to minutes. This is quite unusual considering I've changed the scheduler to SCHED_RR and all threads have the same priority. I later add another thread with the event loop and that did the same thing. What could be the cause of this? Any suggestions anyone? _______________________________________________ Join Excite! - http://www.excite.com The most personalized portal on the Web! --------------------------------------------------------------------- To unsubscribe, e-mail: ####@####.#### For additional commands, e-mail: ####@####.#### | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Subject:
RE: [nanogui] LINK APP INTO SERVER
From: "Robbie" ####@####.#### Date: 11 May 2006 16:26:05 +0100 Message-Id: <20060511152602.0FFC3BD620@xprdmxin.myway.com> I asked a friend to post this on one of the embedded lists and below is the posting: > > Hi All, > > I have a scheduling problem I need some help on. If you can offer any > advise, please help. > > I started my main application which spawns two threads. These threads > runs as expected (well , so far) but the main program which stays in a > loop checking for various events, fails to run at the appropriate time. > The sequence below shows my sequence. > > main() { > > inits...... > > if((sched_param.sched_priority = (sched_get_priority_max(SCHED_RR))) < > 0) printf("Get priority max failed\n"); > if(sched_setscheduler(getpid(), SCHED_RR, &sched_param)) > printf("Scheduler RR FAILED %i\n",sched_param.sched_priority); > if(pthread_attr_init(&my_t_attr) != 0) printf("FAIL to init thread > attr\n"); > if((sched_param.sched_priority = > sched_get_priority_max(SCHED_RR)) < 0) printf("Get priority max > failed\n"); > if(!pthread_attr_setschedparam(&my_t_attr, &sched_param)) > printf("FAIL to set sched param\n"); > if(pthread_create(&parser_th, &my_t_attr, m_parser, NULL) != 0) > printf("parser thread FAILED\n"); > if(pthread_create(&omni_th, &my_t_attr, omni_com, NULL) != 0) > printf("Comm thread FAILED\n"); > > while(!quit) { > ... > Check for events & identify if any > .... > } > } // main > > The main program (event checker) fails to perform its tasks in > appropriate time. It may take upto 3 minutes to be executed. The other > threads will block (put to sleep) for 5 to 10ms if nothing needs to be > done. > > can anyone please help me out here? > > Thanks, in advance. > -----Original Message----- > From: Martin Kajdas ####@####.#### > Sent: Thursday, May 11, 2006 10:12 AM > To: ####@####.#### ####@####.#### > Subject: RE: [nanogui] LINK APP INTO SERVER > > > > -----Original Message----- > From: Robbie ####@####.#### > Sent: Wednesday, May 10, 2006 2:56 PM > To: ####@####.#### > Subject: RE: [nanogui] LINK APP INTO SERVER > Importance: High > Seems that your two questions are not related: > 1. How to link app to server? > 2. Why the event loop is slow? > > In both cases you must be doing something wrong. > The first one is a matter of setting up the linking process properly and > the result application has a nanox server linked with it so it can run > by itself (without starting a nanox server first). > > In the second case, it would be nice to see the source code because the > problem is expected if you coded something wrong in you threads. You > somehow must be preventing the event loop from running. > > Martin > > > > > -----Original Message----- > > From: ####@####.#### > > Sent: Wed, 10 May 2006 16:46:01 -0400 (EDT) > > To: ####@####.#### > > Subject: [nanogui] LINK APP INTO SERVER > > > > > > Hi All, > > > > I've been trying to figure out how to use nanox with the option > > LINK_APP_INTO_SERVER = y. > > > > I notice there is no nanox server app, so where do I start from? > > > > Could someone tell me how this is used and how to get started? > > > > > > I would like to know the answer to this question, however let me add a > description of a problem I'm having so you can get a wider scope. > First, I ran two threads created from the main program prior to entering > the event loop. I've been observing considerible delay and investigated > that the two threads are running as expected, but the evant loop is > running consideraply slower, someting in the order of a few seconds to > minutes. > This is quite unusual considering I've changed the scheduler to > SCHED_RR and all threads have the same priority. > I later add another thread with the event loop and that did the same > thing. > > What could be the cause of this? > Any suggestions anyone? > > _______________________________________________ > Join Excite! - http://www.excite.com > The most personalized portal on the Web! > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: ####@####.#### > For additional commands, e-mail: ####@####.#### > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: ####@####.#### > For additional commands, e-mail: ####@####.#### _______________________________________________ Join Excite! - http://www.excite.com The most personalized portal on the Web! | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Subject:
RE: [nanogui] LINK APP INTO SERVER
From: "Martin Kajdas" ####@####.#### Date: 11 May 2006 16:41:39 +0100 Message-Id: <CF2BB830A62F914F848E5AD5FFF57AC2291512@mkmail.MKPROD.COM> I do not think this question belongs to this group but here are some suggestions: - do not use max priority for anything - use different priorities for each thread - put some printf() with timing info in your threads and see if they are really asleep Things like this always require a lot of logging information (printfs) for debugging. Martin -----Original Message----- From: Robbie ####@####.#### Sent: Thursday, May 11, 2006 8:26 AM To: Martin Kajdas; ####@####.#### ####@####.#### Subject: RE: [nanogui] LINK APP INTO SERVER I asked a friend to post this on one of the embedded lists and below is the posting: > > Hi All, > > I have a scheduling problem I need some help on. If you can offer any > advise, please help. > > I started my main application which spawns two threads. These threads > runs as expected (well , so far) but the main program which stays in a > loop checking for various events, fails to run at the appropriate time. > The sequence below shows my sequence. > > main() { > > inits...... > > if((sched_param.sched_priority = (sched_get_priority_max(SCHED_RR))) < > 0) printf("Get priority max failed\n"); > if(sched_setscheduler(getpid(), SCHED_RR, &sched_param)) > printf("Scheduler RR FAILED %i\n",sched_param.sched_priority); > if(pthread_attr_init(&my_t_attr) != 0) printf("FAIL to init thread > attr\n"); > if((sched_param.sched_priority = > sched_get_priority_max(SCHED_RR)) < 0) printf("Get priority max > failed\n"); > if(!pthread_attr_setschedparam(&my_t_attr, &sched_param)) > printf("FAIL to set sched param\n"); > if(pthread_create(&parser_th, &my_t_attr, m_parser, NULL) != 0) > printf("parser thread FAILED\n"); > if(pthread_create(&omni_th, &my_t_attr, omni_com, NULL) != 0) > printf("Comm thread FAILED\n"); > > while(!quit) { > ... > Check for events & identify if any > .... > } > } // main > > The main program (event checker) fails to perform its tasks in > appropriate time. It may take upto 3 minutes to be executed. The other > threads will block (put to sleep) for 5 to 10ms if nothing needs to be > done. > > can anyone please help me out here? > > Thanks, in advance. > -----Original Message----- > From: Martin Kajdas ####@####.#### > Sent: Thursday, May 11, 2006 10:12 AM > To: ####@####.#### ####@####.#### > Subject: RE: [nanogui] LINK APP INTO SERVER > > > > -----Original Message----- > From: Robbie ####@####.#### > Sent: Wednesday, May 10, 2006 2:56 PM > To: ####@####.#### > Subject: RE: [nanogui] LINK APP INTO SERVER > Importance: High > Seems that your two questions are not related: > 1. How to link app to server? > 2. Why the event loop is slow? > > In both cases you must be doing something wrong. > The first one is a matter of setting up the linking process properly and > the result application has a nanox server linked with it so it can run > by itself (without starting a nanox server first). > > In the second case, it would be nice to see the source code because the > problem is expected if you coded something wrong in you threads. You > somehow must be preventing the event loop from running. > > Martin > > > > > -----Original Message----- > > From: ####@####.#### > > Sent: Wed, 10 May 2006 16:46:01 -0400 (EDT) > > To: ####@####.#### > > Subject: [nanogui] LINK APP INTO SERVER > > > > > > Hi All, > > > > I've been trying to figure out how to use nanox with the option > > LINK_APP_INTO_SERVER = y. > > > > I notice there is no nanox server app, so where do I start from? > > > > Could someone tell me how this is used and how to get started? > > > > > > I would like to know the answer to this question, however let me add a > description of a problem I'm having so you can get a wider scope. > First, I ran two threads created from the main program prior to entering > the event loop. I've been observing considerible delay and investigated > that the two threads are running as expected, but the evant loop is > running consideraply slower, someting in the order of a few seconds to > minutes. > This is quite unusual considering I've changed the scheduler to > SCHED_RR and all threads have the same priority. > I later add another thread with the event loop and that did the same > thing. > > What could be the cause of this? > Any suggestions anyone? > > _______________________________________________ > Join Excite! - http://www.excite.com > The most personalized portal on the Web! > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: ####@####.#### > For additional commands, e-mail: ####@####.#### > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: ####@####.#### > For additional commands, e-mail: ####@####.#### _______________________________________________ Join Excite! - http://www.excite.com The most personalized portal on the Web! | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Subject:
Re: [nanogui] LINK APP INTO SERVER
From: "Greg Haerr" ####@####.#### Date: 12 May 2006 00:40:46 +0100 Message-Id: <395c01c67553$dfc98860$0300a8c0@RDP> : I've been trying to figure out how to use nanox with the option LINK_APP_INTO_SERVER = y. : I notice there is no nanox server app, so where do I start from? No, there's no nano-x server app, when LINK_APP_INTO_SERVER, because: your app is linked to the server. So each app is created w/server. You have to modify your Makefile to make this happen. Look at src/demos/ to see how the tree does it for every application. Regards, Greg | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
[<<] [<] Page 1 of 2 [>] [>>] |