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
12
votes
1 answer

Javascript execution order with setTimeout()

Say that I have the following code: function testA { setTimeout('testB()', 1000); doLong(); } function testB { doSomething(); } function doLong() { //takes a few seconds to do something } I execute testA(). I have read that…
Brian Beckett
  • 4,742
  • 6
  • 33
  • 52
12
votes
5 answers

What happens when you overwrite a memory-mapped executable?

Following the comments on one of my questions I'm intrigued to know what happens when one overwrites an executable. I need to check my understanding on the matter. Say I have /usr/bin/myprog. I run it and so the OS loads /usr/bin/myprog, probably…
user257111
12
votes
2 answers

liquibase - execution order of changesets

As far as I understand, Liquibase execute the changesets according to the order they are written in the change log. I want the changeset to be ran in another order. Is there any way to change the execution order of changesets? A prompt response for…
Nava
  • 121
  • 1
  • 1
  • 3
12
votes
4 answers

Php trapping maximum execution time error

Is there a way in PHP to trap the fatal error when the max execution time is reached and give the user a better message?
AdamA
  • 195
  • 2
  • 6
12
votes
4 answers

Is it possible to run a VBScript in UNIX environment?

I've a Vbscript for merging excel sheet into a single workbook. I would like to know whether we could execute vbscript (.vbs) file in unix system. If yes, please help me with the procedures. Thanks in advance.
arunpandiyarajhen
  • 643
  • 12
  • 20
  • 51
12
votes
5 answers

Set maximum execution time in MYSQL / PHP

I have an XML document that has around 48,000 children (~50MB). I run an INSERT MYSQL query that makes new entries for each one of these children. The problem is that it takes a lot of time due to its size. After it is executed I receive this Fatal…
Harris Geo
  • 239
  • 2
  • 4
  • 14
12
votes
2 answers

How to limit the execution time of a function in javascript?

The situation is: User writes some js-code and it should be runned on some data (locally). But sometimes there are endless loops or recursive calls… That's why I need to limit the execution time of a function but not to edit the function itself (and…
user1431314
  • 143
  • 2
  • 5
12
votes
1 answer

Difference between Machine Cycle, Bus Cycle and Execution Cycle

I am unable to understand the difference between Bus Cycle, Instruction Cycle and Machine Cycle. Please help me out. Thanks
user379888
11
votes
3 answers

What is Objective C execution order after UIApplicationMain in Main?

Could someone please explain how control of execution flows in an iOS application? I know that UIApplicationMain is called first from main. Then what? What is the relationship between my defined methods and main? Is it all event-driven or can there…
Old McStopher
  • 6,295
  • 10
  • 60
  • 89
11
votes
2 answers

Maven Unrecognised Tag: 'executions'

The problem is simple. I added tag in my pom.xml, however I got the below error: [INFO] ------------------------------------------------------------------------ [ERROR] FATAL ERROR [INFO]…
leventunver
  • 3,269
  • 7
  • 24
  • 39
11
votes
1 answer

Is an if statement guaranteed to not be evaluated more than necessary?

Given two conditions with an && connection. I know that the order of evaluation is from left to right. But if the first condition resolves to false, it the second condition guaranteed to not get evaluated? #define SIZE bool array[SIZE]; int…
danijar
  • 32,406
  • 45
  • 166
  • 297
10
votes
3 answers

Stop SQL query execution from .net Code

I'm executing one stored procedure from the '.net' code. Since there is a lot of data, it is taking too much time to execute. Is there any way to stop this execution from the c# code? In other words, if we execute the query from database itself,…
NaveenBhat
  • 3,248
  • 4
  • 35
  • 48
10
votes
1 answer

ipython: exit() statement not working as expected

I am running a script into ipython (1.2.1) and I need it to stop if a certain condition is not met. I tried to use the exit() statement, but it is not behaving as expected. Take for example the following script which I called test.py: if(True): …
valerio
  • 677
  • 4
  • 12
  • 25
10
votes
2 answers

How two different task can goto one task in SSIS

please see the figure to get idea of the scenario. Now when my Package will run after executing the s! task, either A or B path will be followed. So If A is followed then Task S2 and F2 is executed. But if path B is followed, task F1 and F3 is…
Adil Bhatty
  • 17,190
  • 34
  • 81
  • 118
10
votes
6 answers

Code coverage (c++ code execution path)

Let's say I have this code: int function(bool b) { // execution path 1 int ret = 0; if(b) { // execution path 2 ret = 55; } else { // execution path 3 ret = 120; } return ret; } I…
Poni
  • 11,061
  • 25
  • 80
  • 121