Questions tagged [execution]

Refers to the act of running a process.

Refers to the act of running a process. Generally used in reference to the time taken for the process to complete.

1743 questions
1361
votes
22 answers

Asynchronous vs synchronous execution. What is the difference?

What is the difference between asynchronous and synchronous execution?
tush1r
  • 19,443
  • 14
  • 36
  • 35
273
votes
11 answers

How to tell PowerShell to wait for each command to end before starting the next?

I have a PowerShell 1.0 script to just open a bunch of applications. The first is a virtual machine and the others are development applications. I want the virtual machine to finish booting before the rest of the applications are opened. In bash I…
John Mee
  • 50,179
  • 34
  • 152
  • 186
171
votes
19 answers

How to stop/terminate a python script from running?

I wrote a program in IDLE to tokenize text files and it starts to tokeniza 349 text files! How can I stop it? How can I stop a running Python program?
MACEE
  • 1,923
  • 4
  • 15
  • 10
134
votes
4 answers

Gradle to execute Java class (without modifying build.gradle)

There is simple Eclipse plugin to run Gradle, that just uses command line way to launch gradle. What is gradle analog for maven compile and run mvn compile exec:java -Dexec.mainClass=example.Example This way any project with gradle.build could be…
Paul Verest
  • 60,022
  • 51
  • 208
  • 332
124
votes
4 answers

How to execute Python inline from a bash shell

Is there a Python argument to execute code from the shell without starting up an interactive interpreter or reading from a file? Something similar to: perl -e 'print "Hi"'
Sean
  • 1,487
  • 3
  • 10
  • 9
90
votes
5 answers

Can I pass an argument to a VBScript (vbs file launched with cscript)?

I have this script saved in "test.vbs": Set FSO = CreateObject("Scripting.FileSystemObject") Set File = FSO.OpenTextFile(workFolder &"\test.txt", 2, True) File.Write "testing" File.Close Set File = Nothing Set FSO = Nothing Set workFolder =…
Peter
  • 1,543
  • 3
  • 13
  • 9
88
votes
7 answers

Adding delay between execution of two following lines

I need to add a delay between the execution of two lines in a(same) function. Is there any favorable option to do this? Note: I don't need two different functions to do this, and the delay must not affect other functions' execution. eg: line 1:…
Krishna Raj Salim
  • 7,331
  • 5
  • 34
  • 66
75
votes
10 answers

How to force Sequential Javascript Execution?

I've only found rather complicated answers involving classes, event handlers and callbacks (which seem to me to be a somewhat sledgehammer approach). I think callbacks may be useful but I cant seem to apply these in the simplest context. See this…
Tom
  • 753
  • 1
  • 6
  • 5
67
votes
4 answers

.do extension in web pages?

I want to know what is .do extension in web pages. Is it a standard extension, or, if it's not, can we change the extension (like client-login.php to client-login.do and still run as PHP)? Thanks.
Vishwanath Dalvi
  • 35,388
  • 41
  • 123
  • 155
66
votes
5 answers

Does sleep time count for execution time limit?

I have two questions concerning the sleep() function in PHP: Does the sleep time affect the maximum execution time limit of my PHP scripts? Sometimes, PHP shows the message "maximum execution time of 30 seconds exceeded". Will this message appear…
caw
  • 30,999
  • 61
  • 181
  • 291
59
votes
4 answers

Eclipse: export running configuration

I wrote a complex Java application with eclipse that uses many .jar libraries included into project folder. Is there a quick way to export a running configuration of the application that allows me to run it from shell (I don't actually need to move…
Jack
  • 131,802
  • 30
  • 241
  • 343
53
votes
4 answers

MySQL query / clause execution order

What is the predefined order in which the clauses are executed in MySQL? Is some of it decided at run time, and is this order correct? FROM clause WHERE clause GROUP BY clause HAVING clause SELECT clause ORDER BY clause
ericsicons
  • 1,475
  • 3
  • 23
  • 38
45
votes
5 answers

What happens when you run a program?

I would like to collect here what happens when you run an executable on Windows, Linux and OSX. In particular, I would like to understand exactly the order of the operations: my guess is that the executable file format (PE, ELF or Mach-O) is loaded…
Stefano Borini
  • 138,652
  • 96
  • 297
  • 431
44
votes
3 answers

C# -Four Patterns in Asynchronous execution

I heard that there are four patterns in asynchronous execution. There are four patterns in async delegate execution: Polling, Waiting for Completion, Completion Notification, and "Fire and Forget" When I have the following code : class…
user215675
  • 4,991
  • 9
  • 36
  • 40
41
votes
5 answers

Does php execution stop after a user leaves the page?

I want to run a relatively time consuming script based on some form input, but I'd rather not resort to cron, so I'm wondering if a php page requested through ajax will continue to execute until completion or if it will halt if the user leaves the…
Stephen Belanger
  • 6,251
  • 11
  • 45
  • 49
1
2 3
99 100