Is it possible to create a custom attribute , when applied to a method will execute the method in a seperate thread .
Class A {
  [threaded]
  public void execute()
  {
  }
}
main()
{ A obja = new A(); obja.execute() // will excute in a new thread if [threaded] attribute is applied }