It's totally different, curl_exec() is a function call, whereas exec() spawns another process.
curl_exec()
exec()