function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Paras JainParas Jain 

Sychronous and Asynchoronous?

Batch and Schedule apex runs Sychorously or Asynchronously?
 
Ankit AroraAnkit Arora
Batch runs async and schedule class schedules a class at tiem which you define. Overall async.
TheRealistTheRealist

Hi,

if you run a batch apex it performs the entire operation and finishes the job once ,but if you have the batch apex and you want it to run at a particular timeframe then you can schedule it on your desired time frame
you could schedule the batch apex in two ways 1)through user interface or 2) through code

synchronous means an operation that will be performed only when you run it,
asynchronous means operation that will be performed sometime in the future or at a particular time frame.