# 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:** 17

<div class="post-metadata">

**Author:** ![tejal\_vernekar](https://verificationacademy.com/forums/letter_avatar_proxy/v4/letter/t/a8b319/32.png) [@tejal\_vernekar](https://verificationacademy.com/forums/u/tejal_vernekar)\
**Post date:** [January 9, 2018, 4:55am 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/17 "2018-01-09T04:55:53Z")

</div>

_In reply to [dave\_59](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/16):_

But for static lifetime, we need to use task static add(int a,int b)  
By default it will have automatic lifetime

---

_[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)._
