# What is the exact difference between static tasks/functions and automatic tasks/functions ? please explain with a clear example

**URL:** <https://verificationacademy.com/forums/t/what-is-the-exact-difference-between-static-tasks-functions-and-automatic-tasks-functions-please-explain-with-a-clear-example/31014>\
**Category:** SystemVerilog\
**Tags:** SystemVerilog\
**Created:** [September 9, 2015, 10:45am UTC](https://verificationacademy.com/forums/t/what-is-the-exact-difference-between-static-tasks-functions-and-automatic-tasks-functions-please-explain-with-a-clear-example/31014 "2015-09-09T10:45:53Z")\
**Posts on this page:** 1\
**Showing post:** 18

<div class="post-metadata">

**Author:** ![dave\_59](https://verificationacademy.com/forums/user_avatar/verificationacademy.com/dave_59/32/4499_2.png) [@dave\_59](https://verificationacademy.com/forums/u/dave_59)\
**Post date:** [January 9, 2018, 5:02am UTC](https://verificationacademy.com/forums/t/what-is-the-exact-difference-between-static-tasks-functions-and-automatic-tasks-functions-please-explain-with-a-clear-example/31014/18 "2018-01-09T05:02:29Z")

</div>

_In reply to [tejal vernekar](https://verificationacademy.com/forums/t/what-is-the-exact-difference-between-static-tasks-functions-and-automatic-tasks-functions-please-explain-with-a-clear-example/31014/17):_

Please re-read the entire thread. The default lifetime for the code you post is static.

---

_[View the full topic](https://verificationacademy.com/forums/t/what-is-the-exact-difference-between-static-tasks-functions-and-automatic-tasks-functions-please-explain-with-a-clear-example/31014)._
