some questions about times function

Dear all:
I have some questions about times.
As far as I know, times will "get process and waited-for child
process
times".
so if the child is not finish or dead, this function will cause the
deadlock, right?
appreciate your help,
miloody
0
miloody (44)
12/9/2010 3:11:27 PM
comp.unix.programmer 10733 articles. 0 followers. kokososo56 (349) is leader. Post Follow

1 Replies
177 Views

Similar Articles

[PageSpeed] 18
miloody wrote:

> As far as I know, times will "get process and waited-for child
> process
> times".
> so if the child is not finish or dead, this function will cause the
> deadlock, right?

No, it just means that the child time values returned by times()
do not include the times of children that have not been waited for.

-- 
Geoff Clare <netnews@gclare.org.uk>

0
geoff31 (378)
12/13/2010 1:16:22 PM
Reply:
Similar Artilces:

simple destructor question
Hi All, if I have a class that uses a STL list of pointers like: class SomeClass { private: list<OtherClass*> aList; --other stuff-- } If I just do aList.clear() in the destructor is that sufficient or do I have to do a delete on each pointer in the list? Thanks for your help Michael michael wrote: > Hi All, > > if I have a class that uses a STL list of pointers like: > > class SomeClass { > private: > list<OtherClass*> aList; > --other stuff-- > } > > If I just do aList.clear() in the destructor is that ...

X11 question
I downloaded X11 at Apple's website, but this is a rootless system and so when I run it I can't have, say, IceWM or Windowmaker manage the windows for me. Is there a version of X11 that comes in a package that would install as easily as Apple's version of X11, and one in which I could run whatever window manager I wanted? Thank you. -- GR Gaudreau <http://grgaud.exchristian.info> <grgaud at sympatico dot ca> On 2003-10-20, GRGAUD <look@bottom.post> wrote: > I downloaded X11 at Apple's website, but this is a rootless system and > so when I run it ...

Re: A DATASET QUESTION #2
Here is one solution data a ; input subject variableun $ 10-35; variableun=compress(variableun,';'); if INDEX(variableun,'ONGO') THEN VAR='A';ELSE VAR='B'; KEEP VAR; cards4; 1 City Bus leaving - ONGO; 2 Cneter city, california 3 City center colosed - ONGO 4 Center city working - ONGO; 5 Uptown Bronx, New York; 6 Mall center Closed ONGO ;;;; run; proc print; run; Nat Wooding Environmental Specialist III Dominion, Environmental Biology 4111 Castlewood Rd Richmond, VA 23234 Phone:804-271-5313, Fax: 804-...

selectOneMenu simple question...
Hi guys, i'm a question for you.I'm using for the first time a selectonemenu tag in my JSF application and i've this error javax.servlet.ServletException: javax.servlet.jsp.JspException: Value binding '#{user.teams}'of UISelectItems with component-path {Component-Path : [Class: javax.faces.component.UIViewRoot,ViewId: /Login.jsp][Class: javax.faces.component.html.HtmlForm,Id: _id1][Class: javax.faces.component.html.HtmlPanelGrid,Id: _id2][Class: javax.faces.component.html.HtmlPanelGrid,Id: _id4][Class: javax.faces.component.html.HtmlSelectOneMenu,Id: selectTeam][Class: jav...

Print
This works fine print "*" x 10; print "\n"; But is there a way to print *'s then a newline in one line print "*" x 10"\n"; doesnt work. Tks begin 666 cvidal.vcf M0D5'24XZ5D-!4D0-"E9%4E-)3TXZ,BXQ#0I..CMC=FED86P-"D9..F-V:61A M; T*14U!24P[4%)%1CM)3E1%4DY%5#IC=FED86Q 871T+F-O;0T*4D56.C(P ;,#,P.# X5#$S,3@R,%H-"D5.1#I60T%21 T* ` end >>>>> "Chris" == Chris Vidal <cvidal@att.com> writes: Chris> print "*" x 10"\n"; doesnt work. print "*" x 10, "\n"; ...

personal smtp server question
Hi, I would like to install my personal smtp server to protect my privacy. I suspect that my ISP has blocked this option. I have tried to telnet the smtp server of my office at port 25 and not success. Any other solution? Thanks ...

My question
Hello, Today many parallel applications that are disk bound and/or memory bound can not scale on multicore systems. The question is not how to add more and more cores to a multicore system, the problem is how to scalable and speed more the memory system and hardisk system to be able to scale many more applications that are disk or/and memory bound. Thank you, Amine Moulay Ramdane. ...

Question about pychecker and pylint
Hi, I wonder if pychecker projet is dead ? On pychecker home page (http://pychecker.sourceforge.net/), last version date from February 3, 2006 and their mailist contain spam messages only. Other tools like pychecker is pylint at (http://www.logilab.org/project/eid/857). This is a great tools and it's still active. However, it has issue : its web site, it is very incomprehensible. Do you have other pylint web site ? Thanks for your information. Stephane ...

function damp
hi!!! Do you know the equivalent matlab's function "damp" in scilab? Thanks, thanks, thanks JB I'm not aware of an exact translation of the matlab's damp, but the following quick'n'dirty example: s=poly(0,'s'); h=syslin('c',(2*s^2+5*s+1)/(s^2+2*s+3)) roots(2*s^2+5*s+1) trzeros(h) trfmod(h,'p') trfmod(h,'f') plzr(h) //zgrid() //sgrid() should give you some hints I hope. Fran�ois "j-b.tavernier" <j-b.tavernier@wanadoo.fr> a �crit dans le message de news:cdnqdo$k7$1@news-reader1.wana...

Newbie : Cross Tab Question
I wanted to create a cross tab like the result below.I wanted to do it via code. The important thing is that the totals end up at the end. Also, the percentage represent the share of the total for that line. Item 1 Percentag 1 Item 2 Percent 2 Total Items Sold Customer A 6 items sold 60% 4 Items sold 40% 10 Items Sold Customer B 25 items sold 50% 50 Items sold 50% 100 Items Sold How can I do the above via code. ...

Various Questions
How many of you are using Solaris Resource Manager in a production environment? For those of who in cross-platforms, how many use AIX Workload Manager? Is anyone using ADR? Is it in connection with SRM (ie. trigger a DR when some SRM limit is hit for a period of time)? How many of you are using the SEToolkit? What do you like about it? What additional functionality would you like to see? Same questions for other performance tools - what do you like about the tool? What is missing? You can post responses here or directly to me (jar@teamquest.com). Thanks in advance, Joe Rich - TeamQ...

Real time graph plotting
Hi, my project involves getting a constant stream of ADC values from a sensor device connected via serial. What I require your help on is plotting a real time graph of this data. The data is actually coming from a heart pulse monitor, so I would like to display the waveform. Thanks for you help. ...

Questions, Questions, Questions -- Well, really only two
This newsgroup seemed distribution non-specific so here goes: 1. Many companies who want to use linux, want it for email and web service. These systems don't need xwindows, and, in fact, as I understand it, not installing it not only saves resources but reduces security risk. Is there anywhere freely available a how-to install various current distributions of linux using text only, and installing mail, web and domain name service that is fairly easy for the uninformed to follow? Especially helpful would be a debian install. 2. Does anyone know of an encyclopedia, preferrably text-b...

XML beginners question
Good day, I am new on this newsgroup. For a project I am asked to read a XML data file into memory structure (entity structure/values). My question: What do I need for this? Are packages for this, are there some links for tutorials/information about this? I am a beginner on this issue, so please give me a few key-words to search for. Regards, Mike > My question: What do I need for this? Are packages for this, are there > some links for tutorials/information about this? I am a beginner on this > issue, so please give me a few key-words to search for. http://java.sun.com/j2se...

How to pass user input from gtk to a function ?
i want to pass a user input from gtk input box to a function ... i made code below but i had segmentation errors ...so after looking it up i discovred that the line -> "g_signal_connect(but,"clicked",G_CALLBACK(encode(tx1,tx2)),NULL);" doesnt make a sense so can you help me do it . this is program source => ...... //gets the first argument(buf) tx1=gtk_entry_get_text(GTK_ENTRY(entry)); .... //gets the second argument(pass) tx2=gtk_entry_get_text(GTK_ENTRY(entry)); ..... //signal to callback funtion encode when button clicked g_signal_connect(but,"c...

GA error: stall time limit exceeded
Hi, I am trying to fit a model with experimental data with 2 adjustable parameters m1 and m2, by trying to minimize the sum of errors for a particular calculated quantity YH2PermeateAll. The last 2 lines of the objective function is given below to give an idea. After several trials of combinations of m1 and m2, which seem to be progressing quite well, the program terminates with the following error: "Stall time limit exceeded". I tried to overcome this by setting: options = gaoptimset('StallTimeLimit',Inf,'StallGenLimit',Inf) Still gives the same error: ...

Latest Safari "fix" broke functions at my fave web site
Subject says it all... Apparently, Linksys fixes are more important tan general web site access. Is there a way to roll out the latest Safari update? -- VAXman- A Bored Certified VMS Kernel Mode Hacker VAXman(at)TMESIS(dot)ORG http://www.quirkfactory.com/popart/asskey/eqn2.png Yeah. You know, it occurs to me that the best way you hurt rich people is by turning them into poor people. -- Billy Ray Valentine ...

JCE question
Having played a lot with encryption and signing on the MS (shhhh!) .NET platform I decided to play around with the Java Cryptography E(nvironment?). In JCE I have gotten around to make some encrypt/decrypt playground utility using PBEWithMD5AndTripleDES, yet I wonder, is that the same as DESede which can also be given as the encryption algorithm? Basically I want to develop an encryption utility that I fully understand but this PBE thing I don't. Yes, I need to use a passphrase to do the encryption but why can't I do that with just selecting DESede as the algorithm (that is Trip...

49g+ question
Peace to you all I want to ask you all, something about my hp 49g+: everytime i try to enter a simple calculate like: 2 * p (the pay sign, 3.14...) and then i press "Enter" i get: 2.*p ? each time i must use the "Eval" button to get a properly answer. i use the latest rom version in algebric mode. thanks, Dan. Hold right shift down and press and release ENTER then release the shift key, too That will change you into Approx. mode (instead of Exact) And in the header = changes to ~ in order to indicate your mode change Alternatively you can press [MODE] then |CA...

[News] [Rival] Buy Microsoft, Get Owned (IIS Compromised Big Time)
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Mass SQL Injection Attack Hits Sites Running IIS ,----[ Quote ] | There's a large-scale attack underway that is | targeting Web servers running Microsoft's IIS | software, injecting the sites with a specific | malicious script. The attack has compromised tens | of thousands of sites already, experts say, and | there's no clear indication of who's behind the | campaign right now. | | The attack, which researchers first noticed | earlier this week, already has affected a few | high-profile sites, including those belonging t...

Epson 2200 refilling question
I'm getting mixed answers from ink suppliers on this--do the 2200 carts (T034..) contain sponges or not? Has anyone sawed one open to find out? One of the problems refillers have with recent Epson carts is that these newer sponges deteriorate or harden quickly, limiting the number of refills and also the amount of ink that can be re-introduced. The sponge problem does not exist for 3rd party cartidges intended for refilling. This could be seen as another attempt to thwart refilling (in addition to the chip). But I'd also heard that internal sponges and pigment-based inks w...

fmincon question #6
I'm working on an optimization problem, and I'm having trouble setting up the constraints properly. The function that I am minimizing takes two inputs. It calls a number of other functions, but in the end returns a scalar output. The two inputs to the function are constrained, and I know how to do that. However, there are variables inside the function that I am minimizing that I need to constrain. These internal variables are dependent upon the two inputs and so can't themselves be inputs to the function I am minimizing. How would I constrain these internal variables (if it i...

function as a parameter
Is it correct to write: void g(void f(int i)); (I know that most of the time it's written: void g(void (*f)(int i)), but the compiler doesn't mind the first one, too. Is it correct by the standart?) "maths_fan" <maths_fan@mail.ru> wrote in message news:c13b5d9.0402270802.4b1fa3c0@posting.google.com... > Is it correct to write: > > void g(void f(int i)); > > (I know that most of the time it's written: void g(void (*f)(int i)), > but the compiler doesn't mind the first one, too. Is it correct by the > standart?) Yes. ...

Some questions
1. I can't find any brief description of PL/I grammar. 2. Are some editors, that support PL/I? Or, at least, parse files? 3. Have some body experience with multithreading facility of VA PL/I? Any tricks? 4. I'd like to call some Fortran subroutines from VA PL/I program. What compiler/linker is preferable? 5. PL/I have a big story, but I can't find any sufficiently big collection of PL codes (especially numerical). On my look, for IBM and Multics it sould be a lot. May be somebody knows about such collection(-s)? MZN wrote: > 1. I can't find any brief description of P...

calling rhapsody API's from s-functions
hi, i want to integrate simulink and rhapsody tools. For that i need to call APIs in the rhapsody from a s-function. i do not know which DLLs contains the APIs. But i have a Type library file(rhapsody.tlb) which contains the information about the APIs and their declarations. i have the code to call rhapsody APIs from VC++ by importing rhpsody.tlb file. How can i do that in simulink s-function. ...